Part Number Hot Search : 
HC705 CMZ12 N4001 R232M6 LA8670M A1540 UG06A N4001
Product Description
Full Text Search
 

To Download M38C35E6AXXXFP Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  38c3 group pin configuration (top view) package type : 80p6n-a 80-pin plastic-molded qfp description the 38c3 group is the 8-bit microcomputer based on the 740 family core technology. the 38c3 group has a lcd drive control circuit, a 10-channel a-d converter, and a serial i/o as additional functions. the various microcomputers in the 38c3 group include variations of internal memory size and packaging. for details, refer to the section on part numbering. for details on availability of microcomputers in the 38c3 group, refer to the section on group expansion. features l basic machine-language instructions ....................................... 71 l the minimum instruction execution time ............................. 0.5 m s (at 8mhz oscillation frequency) l memory size rom .................................................................. 4 k to 48 k bytes ram ................................................................. 192 to 1024 bytes l programmable input/output ports ............................................. 57 l software pull-up/pull-down resistors ..................................................... (ports p0Cp8 except port p5 1 ) l interrupts ................................................... 16 sources, 16 vectors (includes key input interrupt) l timers ............................................................ 8-bit 5 6, 16-bit 5 1 l a-d converter ................................................. 10-bit 5 8 channels l serial i/o ....................................... 8-bit 5 1 (clock-synchronized) l lcd drive control circuit bias ............................................................................ 1/1, 1/2, 1/3 duty .................................................................... 1/1, 1/2, 1/3, 1/4 common output .......................................................................... 4 segment output ........................................................................ 32 l 2 clock generating circuit (connect to external ceramic resonator or quartz-crystal oscillator) l power source voltage in high-speed mode .................................................... 4.0 to 5.5 v in middle-speed mode ................................................ 2.5 to 5.5 v in low-speed mode ...................................................... 2.5 to 5.5 v l power dissipation in high-speed mode ........................................................... 32 mw (at 8 mhz oscillation frequency) in low-speed mode .............................................................. 45 m w (at 32 khz oscillation frequency, at 3 v power source voltage) l operating temperature range .................................... C 20 to 85c applications camera, household appliances, consumer electronics, etc. mitsubishi microcomputers single-chip 8-bit cmos microcomputer fig. 1 m38c34m6axxxfp pin configuration 1 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 p6 4 /an 4 p6 5 /an 5 p6 6 /an 6 p6 7 /an 7 av ss v ref p6 0 /an 0 p6 1 /an 1 p6 2 /an 2 p6 3 /an 3 v cc v ss x out p7 0 /xc in p7 1 /xc out x in reset vl 1 com 3 com 2 com 1 com 0 vl 3 vl 2 p4 0 /s clk2 p4 2 /t3 out p4 3 / f p4 4 /s in p4 5 /s out p4 6 /s clk1 p4 7 /s rdy p4 1 /t1 out p8 0 p8 1 p8 2 p8 3 p8 4 p8 5 p8 6 p8 7 p3 0 /seg 24 p3 3 /seg 27 p3 4 /seg 28 p3 5 /seg 29 p3 6 /seg 30 p3 7 /seg 31 p3 1 /seg 25 p3 2 /seg 26 m38c34m6axxxfp p5 1 p5 2 /pwm 1 p5 3 /cntr 0 p5 4 /cntr 1 p5 5 /int 0 p5 6 /int 1 p5 7 /int 2 p5 0 /ta out p1 0 /seg 16 p1 1 /seg 17 p1 2 /seg 18 p1 3 /seg 19 p1 4 /seg 20 p1 5 /seg 21 p1 6 /seg 22 p1 7 /seg 23 p0 0 /seg 8 p0 1 /seg 9 p0 2 /seg 10 p0 3 /seg 11 p0 4 /seg 12 p0 5 /seg 13 p0 6 /seg 14 p0 7 /seg 15 p2 7 /seg 7 p2 6 /seg 6 p2 5 /seg 5 p2 4 /seg 4 p2 3 /seg 3 p2 2 /seg 2 p2 1 /seg 1 p2 0 /seg 0 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
2 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 38c3 group functional block diagram fig. 2 functional block diagram key-on wake-up int 0 Cint 2 cntr 0 ,cntr 1 t1 out, t3 out f data bus c p u a x y s pc h pc l ps reset v cc v ss reset input ( 5 v ) ( 0 v ) r o m r a m lcd display ram (16 bytes) 10 16 13 i/o port p5 p4(8) i/o port p4 i/o port p2 p2(8) i/o port p1 p1(8) p6(8) output port p3 i/o port p6 p5(8) i/o port p7 p7(2) 28 27 26 32 31 30 29 i/o port p0 p0(8) 49 50 51 52 53 54 55 56 41 42 43 44 45 46 47 48 57 58 59 60 61 62 63 64 67 68 69 70 71 72 65 66 12 11 1 2 75 76 77 78 79 80 73 74 456789 17 3 clock generating circuit main clock input x in main clock output x out x cout sub- clock output x cin sub- clock input si/o(8) v ref av ss ( 0 v ) a-d converter(10) timer 1(8) timer 2(8) lcd drive control circuit v l1 v l2 v l3 com 0 com 1 com 2 com 3 f x cin x cout 14 15 timer 3(8) timer 4(8) timer 5(8) timer 6(8) p3(8) 33 34 35 36 37 38 39 40 r o m corrective circuit rom corrective ram (8 bytes) i/o port p8 p8(8) 18 19 20 21 22 23 24 25 pwm 0, pwm 1 timer a(16)
3 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 38c3 group ? apply voltage of 2.5 v to 5.5 v to v cc , and 0 v to v ss . ? reference voltage input pin for a-d converter. ? gnd input pin for a-d converter. ? connect to v ss . ? reset input pin for active l. ? input and output pins for the main clock generating circuit. ? feedback resistor is built in between x in pin and x out pin. ? connect a ceramic resonator or a quartz-crystal oscillator between the x in and x out pins to set the oscillation frequency. ? if an external clock is used, connect the clock source to the x in pin and leave the x out pin open. ? input 0 v l1 v l2 v l3 v cc voltage. ? input 0 C v l3 voltage to lcd. ? lcd common output pins. ? com 1 , com 2 , and com 3 are not used at 1/1 duty ratio. ? com 2 and com 3 are not used at 1/2 duty ratio. ? com 3 is not used at 1/3 duty ratio. ? 8-bit i/o port. ? cmos compatible input level. ? cmos 3-state output structure. ? i/o direction register allows each port to be individually programmed as either input or output. ? pull-down control is enabled. ? 8-bit output port. ? cmos state output. ? pull-down control is enabled. ? 8-bit i/o port. ? cmos compatible input level. ? cmos 3-state output structure. ? i/o direction register allows each pin to be individually programmed as either input or output. ? pull-up control is enabled. ? lcd segment pins ? serial i/o function pin ? timer output pin ? timer output pin ? f output pin ? serial i/o function pins pin v cc , v ss v ref av ss reset x in x out v l1 C v l3 com 0 C com 3 p0 0 /seg 9 C p0 7 /seg 15 p1 0 /seg 16 C p1 7 /seg 23 p2 0 /seg 0 C p2 7 /seg 7 p3 0 /seg 24 C p3 7 /seg 31 p4 0 /s clk2 p4 1 /t 1out p4 2 /t 3out p4 3 / f p4 4 /s in , p4 5 /s out , p4 6 /s clk1, p4 7 /s rdy name power source analog reference voltage analog power source reset input clock input clock output lcd power source common output i/o port p0 i/o port p1 i/o port p2 output port p3 i/o port p4 function except a port function pin description table 1 pin description (1) function
4 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 38c3 group ? 1-bit input pin. ? cmos compatible input level. ? 7-bit i/o port. ? cmos compatible input level. ? cmos 3-state output structure. ? i/o direction register allows each pin to be individually programmed as either input or output. ? pull-up control is enabled. ? 8-bit i/o port. ? cmos compatible input level. ? cmos 3-state output structure. ? i/o direction register allows each pin to be individually programmed as either input or output. ? pull-up control is enabled. ? 2-bit i/o port. ? cmos compatible input level. ? cmos 3-state output structure. ? i/o direction register allows each pin to be individually programmed as either input or output. ? pull-up control is enabled. ? 8-bit i/o port. ? ttl input level. ? cmos 3-state output structure. ? i/o direction register allows each pin to be individually programmed as either input or output. ? pull-up control is enabled. pin p5 1 p5 0 /ta out p5 2 /pwm 1 p5 3 /cntr 0 , p5 4 /cntr 1 p5 5 /int 0 , p5 6 /int 1 , p5 7 /int 2 p6 0 /an 0 C p6 7 /an 7 p7 0 /x cout, p7 1 /x cin p8 0 C p8 7 table 2 pin description (2) name input port p5 i/o port p5 i/o port p6 i/o port p7 i/o port p8 function except a port function ? timer a output pin ? pwm 1 output (timer output) pin ? external count i/o pins ? external interrupt input pins ? a-d conversion input pins ? sub-clock generating circuit i/o pins ? key input (key-on wake-up) interrupt input pins function
5 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 38c3 group m38c3 4 m 6 a xxx fp product rom/prom size 1 2 3 4 5 6 7 8 : 4096 bytes : 8192 bytes : 12288 bytes : 16384 bytes : 20480 bytes : 24576 bytes : 28672 bytes : 32768 bytes the first 128 bytes and the last 2 bytes of rom are reserved areas ; they cannot be used. memory type m e : mask rom version : eprom or one time prom version ram size 0 1 2 3 4 5 6 7 : 192 bytes : 256 bytes : 384 bytes : 512 bytes : 640 bytes : 768 bytes : 896 bytes : 1024 bytes package type fp fs rom number omitted in some types. a : standard (note) m : m version : 80p6n-a package : 80d0 package 9 a b c : 36864 bytes : 40960 bytes : 45056 bytes : 49152 bytes note : difference between standard and m version ? standard : ? m version : port p5 0 /ta out pin remains set to the input mode until the direction register is set to the output mode during reset and after reset. port p5 0 /ta out pin remains set to the output mode (l output) until the direction register is set to the input mode during reset and after reset. part numbering fig. 3 part numbering
6 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 38c3 group rom size (bytes) 32k 28k 24k 20k 16k 12k 8k 4k 256 384 512 640 768 896 1024 192 ram size (bytes) 36k 40k 44k 48k under development m38c34m6a/m6m under development m38c37eca/ecm planning m38c33m4 products under development or planning : the development schedule and specification may be revised without notice. planning products may be stopped the development. group expansion mitsubishi plans to expand the 38c3 group as follows. memory type support for mask rom, one time prom, and eprom versions memory size rom/prom size ................................................ 16 k to 48 k bytes ram size ............................................................. 512 to 1024 bytes memory expansion plan fig. 4 memory expansion plan currently planning products are listed below. as of april 1998 package 80p6n-a 80d0 80p6n-a 80d0 product name m38c34m6axxxfp m38c37ecaxxxfp m38c37ecafp m38c37ecafs m38c34m6mxxxfp m38c37ecmxxxfp m38c37ecmfp m38c37ecmfs (p) rom size (bytes) rom size for user in ( ) 24576 (24446) 49152 (49022) 24576 (24446) 49152 (49022) ram size (bytes) 640 1024 640 1024 table 3 support products mask rom version one time prom version one time prom version (blank) eprom version mask rom version one time prom version one time prom version (blank) eprom version remarks packages 80p6n-a ..................................... 0.8 mm-pitch plastic molded qfp 80d0 ........................ 0.8 mm-pitch ceramic lcc (eprom version)
7 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 38c3 group not available processor mode bits b1 b0 0 0 : single-chip mode 0 1 : 1 0 : 1 1 : stack page selection bit 0 : ram in the zero page is used as stack area 1 : ram in page 1 is used as stack area not used (returns ??when read) (do not write ??to this bit.) port x c switch bit 0 : i/o port 1 : x cin , x cout main clock ( x in ? out ) stop bit 0 : operating 1 : stopped main clock division ratio selection bit 0 : f(x in )/2 (high-speed mode) 1 : f(x in )/8 (middle-speed mode) internal system clock selection bit 0 : x in -x out selected (middle-/high-speed mode) 1 : x cin -x cout selected (low-speed mode) cpu mode register (cpum (cm) : address 003b 16 ) b7 b0 functional description central processing unit (cpu) the 38c3 group uses the standard 740 family instruction set. refer to the table of 740 family addressing modes and machine instruc- tions or the 740 family software manual for details on the instruction set. machine-resident 740 family instructions are as follows: the fst and slw instruction cannot be used. the stp, wit, mul, and div instruction can be used. [cpu mode register (cpum)] 003b 16 the cpu mode register contains the stack page selection bit and the internal system clock selection bit. the cpu mode register is allocated at address 003b 16 . fig. 5 structure of cpu mode register
8 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 38c3 group 192 256 384 512 640 768 896 1024 00ff 16 013f 16 01bf 16 023f 16 02bf 16 033f 16 03bf 16 043f 16 ram area ram size (bytes) address xxxx 16 4096 8192 12288 16384 20480 24576 28672 32768 36864 40960 45056 49152 f000 16 e000 16 d000 16 c000 16 b000 16 a000 16 9000 16 8000 16 7000 16 6000 16 5000 16 4000 16 f080 16 e080 16 d080 16 c080 16 b080 16 a080 16 9080 16 8080 16 7080 16 6080 16 5080 16 4080 16 rom area rom size (bytes) address yyyy 16 address zzzz 16 0058 16 0000 16 0040 16 0440 16 ff00 16 ffdc 16 fffe 16 ffff 16 xxxx 16 yyyy 16 zzzz 16 ram rom 0050 16 reserved area sfr area 1 not used interrupt vector area reserved rom area (128 bytes) zero page special page lcd display ram area reserved rom area rom corrective ram area 0100 16 (note 1) sfr area 2 (note 1) 0f00 16 0fff 16 note 1 : this is valid only in mask rom version. memory special function register (sfr) area the special function register area in the zero page contains control registers such as i/o ports and timers. ram ram is used for data storage and for stack area of subroutine calls and interrupts. rom the first 128 bytes and the last 2 bytes of rom are reserved for device testing and the rest is user area for storing programs. interrupt vector area the interrupt vector area contains reset and interrupt vectors. zero page access to this area with only 2 bytes is possible in the zero page addressing mode. special page access to this area with only 2 bytes is possible in the special page addressing mode. fig. 6 memory map diagram
9 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 38c3 group fig. 7 memory map of special function register (sfr) rom correct high-order address register 1 (note) rom correct high-order address register 2 (note) rom correct high-order address register 3 (note) rom correct high-order address register 4 (note) port p8 output selection register (p8sel) 0020 16 0021 16 0022 16 0023 16 0024 16 0025 16 0026 16 0027 16 0028 16 0029 16 002a 16 002b 16 002c 16 002d 16 002e 16 002f 16 0030 16 0031 16 0032 16 0033 16 0034 16 0035 16 0036 16 0037 16 0038 16 0039 16 003a 16 003b 16 003c 16 003d 16 003e 16 003f 16 0000 16 0001 16 0002 16 0003 16 0004 16 0005 16 0006 16 0007 16 0008 16 0009 16 000a 16 000b 16 000c 16 000d 16 000e 16 000f 16 0010 16 0011 16 0012 16 0013 16 0014 16 0015 16 0016 16 0017 16 0018 16 0019 16 001a 16 001b 16 001c 16 001d 16 001e 16 001f 16 port p0 (p0) port p0 direction register (p0d) port p1 (p1) port p1 direction register (p1d) port p2 (p2) port p2 direction register (p2d) port p3 (p3) port p4 (p4) port p4 direction register (p4d) port p5 (p5) port p5 direction register (p5d) port p6 (p6) port p6 direction register (p6d) port p7 (p7) port p7 direction register (p7d) serial i/o control register 1 (siocon1) serial i/o control register 2 (siocon2) serial i/o register (sio) interrupt control register 2 (icon2) timer 6 pwm register (t6pwm) interrupt edge selection register (intedge) cpu mode register (cpum) interrupt request register 1 (ireq1) interrupt request register 2 (ireq2) interrupt control register 1 (icon1) timer 1 (t1) timer 3 (t3) timer 5 (t5) timer 6 (t6) timer 2 (t2) timer 4 (t4) pull register a (pulla) pull register b (pullb) timer 12 mode register (t12m) timer 34 mode register (t34m) timer 56 mode register (t56m) segment output enable register (seg) lcd mode register (lm) a-d control register (adcon) a-d conversion register (low) (adl) port p8 (p8) port p8 direction register (p8d) f output control register (ckout) timer a register (low) (tal) timer a register (high) (tah) compare register (low) (conal) compare register (high) (conah) timer a mode register (tam) timer a control register (tacon) a-d conversion register (high) (adh) 0f0a 16 0f0b 16 0f0c 16 0f0d 16 0f0e 16 0f0f 16 0f10 16 0f11 16 rom correct enable register 1 (note) rom correct low-order address register 1 (note) rom correct high-order address register 5 (note) rom correct low-order address register 5 (note) rom correct high-order address register 6 (note) rom correct low-order address register 6 (note) rom correct high-order address register 7 (note) rom correct low-order address register 7 (note) rom correct high-order address register 8 (note) rom correct low-order address register 8 (note) 0f01 16 0f02 16 0f03 16 0f07 16 0f08 16 0f09 16 0f04 16 0f05 16 0f06 16 rom correct low-order address register 2 (note) rom correct low-order address register 3 (note) rom correct low-order address register 4 (note) note: this register is valid only in mask rom version.
10 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 38c3 group i/o ports [direction registers (ports p2, p4, p5 0 , p5 2 Cp5 7 , and p6Cp8)] the i/o ports p2, p4, p5 0 , p5 2 Cp5 7 , and p6Cp8 have direction reg- isters which determine the input/output direction of each individual pin. each bit in a direction register corresponds to one pin, each pin can be set to be input port or output port. when 0 is written to the bit corresponding to a pin, that pin be- comes an input pin. when 1 is written to that bit, that pin becomes an output pin. if data is read from a pin set to output, the value of the port output latch is read, not the value of the pin itself. pins set to input are float- ing. if a pin set to input is written to, only the port output latch is written to and the pin remains floating. [direction registers (ports p0 and p1)] ports p0 and p1 have direction registers which determine the input/ output direction of each individual port. each port in a direction register corresponds to one port, each port can be set to be input or output. when 0 is written to the bit 0 of a direction register, that port be- comes an input port. when 1 is written to that port, that port be- comes an output port. bits 1 to 7 of ports p0 and p1 direction regis- ters are not used. pull-up/pull-down control by setting the pull register a (address 0016 16 ) or the pull register b (address 0017 16 ), ports except for ports p3 and p5 1 can control either pull-down or pull-up (pins that are shared with the segment output pins for lcd are pull-down; all other pins are pull-up) with a program. however, the contents of pull register a and pull register b do not affect ports programmed as the output ports. port p8 output selection ports p8 0 to p8 7 can be switched to n-channel open-drain output by setting 1 to the port p8 output selection register. fig. 8 structure of pull register a and pull register b pin p0 0 /seg 8 C p0 7 /seg 15 p1 0 /seg 16 C p1 7 /seg 23 p2 0 /seg 0 C p2 7 /seg 7 p3 0 /seg 24 C p3 7 /seg 31 name port p0 port p1 port p2 port p3 input/output input/output, port unit input/output, port unit input/output, individual bits output, individual bits i/o format cmos compatible input level cmos 3-state output cmos compatible input level cmos 3-state output cmos compatible input cmos 3-state output cmos 3-state output non-port function lcd segment output lcd segment output lcd segment output lcd segment output related sfrs pull register a segment output enable reg- ister pull register a segment output enable reg- ister pull register a segment output enable reg- ister segment output enable reg- ister ref. no. (1) (2) table 4 list of i/o port function (1) fig. 9 structure of port p8 output selection register p0 0 ?0 7 pull-down p1 0 ?1 7 pull-down p2 0 ?2 7 pull-down not used p7 0 , p7 1 pull-up p8 0 ?8 7 pull-up pull register a (pulla : address 0016 16 ) b7 b0 p4 0 ?4 3 pull-up p4 4 ?4 7 pull-up p5 0 , p5 2 , p5 3 pull-up p5 4 ?5 7 pull-up p6 0 , p6 3 pull-up p6 4 ?6 7 pull-up not used (return ??when read) 0 : disable 1 : enable pull register b (pullb : address 0017 16 ) b7 b0 note : the contents of pull register a and pull register b do not affect ports programmed as the output ports. not used (return ??when read) 0 : cmos output (in output mode) 1 : n-channel open-drain output (in output mode) port p8 output selection register (p8sel : address 0018 16 ) b7 b0
11 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 38c3 group pin p4 0 /s clk2 p4 1 /t 1out p4 2 /t 3out p4 3 / f p4 4 /s in p4 5 /s out p4 6 /s clk1 p4 7 /s rdy p5 0 /ta out p5 1 p5 2 /pwm 1 p5 3 /cntr 0 p5 4 /cntr 1 p5 5 /int 0 p5 6 /int 1 p5 7 /int 2 p6 0 /an 0 C p6 7 /an 7 p7 0 /x cin p7 1 /x cout p8 0 C p8 7 com 0 C com 3 name port p4 port p5 port p6 port p7 port p8 common input/output input/output, individual bits input/output, individual bits input input/output, individual bits input/output, individual bits input/output, individual bits input/output, individual bits output i/o format cmos compatible input level cmos 3-state output cmos compatible input level cmos 3-state output cmos compatible input level cmos compatible input level cmos 3-state output cmos compatible input level cmos 3-state output cmos compatible input level cmos 3-state output cmos compatible input level cmos 3-state output lcd common output non-port function serial i/o function i/o timer output timer output f clock output serial i/o function i/o timer a output pwm output external count i/o external interrupt in- put a-d converter input sub-clock generating circuit i/o key input (key-on wake-up) interrupt in- put related sfrs serial i/o control registers 1, 2 pull register b timer 12 mode register pull register b timer 34 mode register pull register b f output control register pull register b serial i/o control registers 1, 2 pull register b timer a mode register timer a control reigster pull register b timer 56 mode register pull register b interrupt edge selection reg- ister pull register b interrupt edge selection reg- ister pull register b a-d control register pull register b cpu mode register pull register a interrupt control register 2 pull register a lcd mode register ref. no. (3) (4) (4) (5) (6) (7) (8) (9) (10) (11) (4) (12) (12) (13) (14) (15) (17) (16) table 5 list of i/o port function (2) notes 1: make sure that the input level at each pin is either 0 v or v cc during execution of the stp instruction. when an input level is at an intermediate potential, a current will flow from v cc to v ss through the input-stage gate. 2: for details of the functions of ports p0 to p3 in modes other than single-chip mode, and how to use double function ports as fu nction i/o ports, refer to the applicable sections.
12 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 38c3 group fig. 10 port block diagram (1) (6)port p4 4 serial i/o input (1)ports p0, p1, p2 segment output enable bit pull-down control segment output enable bit direction register data bus port latch v l2 /v l3 v l1 /v ss (5)port p4 3 f f output control bit (2)port p3 segment output enable bit pull-down control segment output enable bit data bus port latch v l2 /v l3 v l1 /v ss (4)ports p4 1 , p4 2 , p5 2 timer 1 output selection bit timer 3 output selection bit timer 6 output selection bit direction register pull-up control timer 1 output timer 3 output timer 6 output (3)port p4 0 data bus serial i/o clock output serial i/o mode selection bit port latch direction register pull-up control p-channel output disable bit (note) note : port p0, p1 direction registers are only bit 0. data bus port latch port latch direction register data bus pull-up control data bus port latch direction register pull-up control
13 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 38c3 group fig. 11 port block diagram (2) (7)port p4 5 data bus serial i/o port selection bit serial i/o output p-channel output disable bit port latch direction register pull-up control (9)port p4 7 data bus serial i/o ready output port latch s rdy output enable bit direction register pull-up control (8)port p4 6 serial i/o clock output serial i/o clock input serial i/o mode selection bit port latch direction register pull-up control p-channel output disable bit (10)port p5 0 data bus port latch direction register pull-up control timer a output enable bit timer a output (12)ports p5 3 ?5 7 int 0 ?nt 2 interrupt input data bus direction register port latch pull-up control (11)port p5 1 data bus (note) note: the initihal value of m version becomes ??(output). data bus cntr 0 ,cntr 1 interrupt input
14 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 38c3 group fig. 12 port block diagram (3) (14)port p7 0 direction register data bus port latch port selection ?pull-up control oscillator port p7 0 (15)port p7 1 direction register data bus port xc switch bit port latch port selection ?pull-up control sub-clock generating circuit input (16)com 0 ?om 3 v l3 v l2 v l1 the gate input signal of each transistor is controlled by the lcd duty ratio and the bias value. (13)port p6 analog input pin selection bit a-d conversion input data bus port latch direction register pull-up control (17)port p8 key input (key-on wake-up) interrupt input data bus direction register port latch pull-up control p-channel output disable bit port xc switch bit port xc switch bit
15 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 38c3 group interrupts interrupts occur by sixteen sources: six external, nine internal, and one software. interrupt control each interrupt except the brk instruction interrupt have both an in- terrupt request bit and an interrupt enable bit, and is controlled by the interrupt disable flag. an interrupt occurs if the corresponding inter- rupt request and enable bits are 1 and the interrupt disable flag is 0. interrupt enable bits can be set or cleared by software. interrupt re- quest bits can be cleared by software, but cannot be set by software. the brk instruction interrupt and reset cannot be disabled with any flag or bit. the i flag disables all interrupts except the brk instruction interrupt and reset. if several interrupts requests occurs at the same time the interrupt with highest priority is accepted first. interrupt operation by acceptance of an interrupt, the following operations are automati- cally performed: 1. the processing being executed is stopped. 2. the contents of the program counter and processor status reg- ister are automatically pushed onto the stack. 3. the interrupt disable flag is set and the corresponding interrupt request bit is cleared. 4. the interrupt jump destination address is read from the vector table into the program counter. n notes on interrupts when the active edge of an external interrupt (int 0 C int 2 , cntr 0 or cntr 1 ) is set or an vector interrupt source where several interrupt source is assigned to the same vector address is switched, the cor- responding interrupt request bit may also be set. therefore, take fol- lowing sequence: (1) disable the interrupt. (2) change the active edge in interrupt edge selection register. (3) clear the set interrupt request bit to 0. (4) enable the interrupt.
16 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 38c3 group interrupt source reset (note 2) int 0 int 1 int 2 serial i/o timer a timer 1 timer 2 timer 3 timer 4 timer 5 timer 6 cntr 0 cntr 1 key input (key- on wake-up) a-d conversion brk instruction priority 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 vector addresses (note 1) high fffd 16 fffb 16 fff9 16 fff7 16 fff5 16 fff3 16 fff1 16 ffef 16 ffed 16 ffeb 16 ffe9 16 ffe7 16 ffe5 16 ffe3 16 ffe1 16 ffdf 16 ffdd 16 interrupt request generating conditions at reset at detection of either rising or falling edge of int 0 intput at detection of either rising or falling edge of int 1 input at detection of either rising or falling edge of int 2 input at completion of serial i/o data transmit/re- ceive at timer a underflow at timer 1 underflow at timer 2 underflow at timer 3 underflow at timer 4 underflow at timer 5 underflow at timer 6 underflow at detection of either rising or falling edge of cntr 0 input at detection of either rising or falling edge of cntr 1 input at falling of port p8 (at input) input logical level and at completion of a-d conversion at brk instruction execution remarks non-maskable external interrupt (active edge selectable) external interrupt (active edge selectable) external interrupt (active edge selectable) valid when serial i/o is selected stp release timer underflow external interrupt (active edge selectable) external interrupt (active edge selectable) external interrupt (falling valid) valid when a-d conversion interrupt is selected non-maskable software interrupt low fffc 16 fffa 16 fff8 16 fff6 16 fff4 16 fff2 16 fff0 16 ffee 16 ffec 16 ffea 16 ffe8 16 ffe6 16 ffe4 16 ffe2 16 ffe0 16 ffde 16 ffdc 16 notes 1: vector addresses contain interrupt jump destination addresses. 2: reset function in the same way as an interrupt with the highest priority. table 6 interrupt vector addresses and priority
17 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 38c3 group b7 b0 interrupt edge selection register int 0 interrupt edge selection bit int 1 interrupt edge selection bit int 2 interrupt edge selection bit not used (return ??when read) cntr 0 active edge switch bit cntr 1 active edge switch bit (intedge : address 003a 16 ) interrupt request register 1 int 0 interrupt request bit int 1 interrupt request bit int 2 interrupt request bit serial i/o interrupt request bit timer a interrupt request bit timer 1 interrupt request bit timer 2 interrupt request bit timer 3 interrupt request bit interrupt control register 1 int 0 interrupt enable bit int 1 interrupt enable bit int 2 interrupt enable bit serial i/o interrupt enable bit timer a interrupt enable bit timer 1 interrupt enable bit timer 2 interrupt enable bit timer 3 interrupt enable bit 0 : no interrupt request issued 1 : interrupt request issued (ireq1 : address 003c 16 ) (icon1 : address 003e 16 ) interrupt request register 2 timer 4 interrupt request bit timer 5 interrupt request bit timer 6 interrupt request bit cntr 0 interrupt request bit cntr 1 interrupt request bit key input interrupt request bit ad conversion interrupt request bit not used (returns ??when read) (ireq2 : address 003d 16 ) interrupt control register 2 timer 4 interrupt enable bit timer 5 interrupt enable bit timer 6 interrupt enable bit cntr 0 interrupt enable bit cntr 1 interrupt enable bit key input interrupt enable bit ad conversion interrupt enable bit not used (returns ??when read) (do not write ??to this bit) 0 : interrupts disabled 1 : interrupts enabled (icon2 : address 003f 16 ) 0 : falling edge active 1 : rising edge active b7 b0 b7 b0 b7 b0 b7 b0 0 : falling edge active, rising edge count 1 : rising edge active, falling edge count interrupt request bit interrupt enable bit interrupt disable flag (i) brk instruction reset interrupt request fig. 13 interrupt control fig. 14 structure of interrupt-related registers
18 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 38c3 group ] ] ] ] ] ] ] ] ] ] ] ] ] ] ] ] ] ] ] ] ] ] ] ] port p8 0 latch port p8 0 direction register = ? port p8 1 latch port p8 1 direction register = ? port p8 2 latch port p8 2 direction register = ? port p8 3 latch port p8 3 direction register = ? port p8 4 latch port p8 4 direction register = ? port p8 5 latch port p8 5 direction register = ? port p8 6 latch port p8 6 direction register = ? port p8 7 latch port p8 7 direction register = ? p8 0 input p8 1 input p8 2 input p8 3 input p8 4 output p8 5 output p8 6 output p8 7 output pull register a bit 5 = ? port p8 input reading circuit port pxx ??level output ] p-channel transistor for pull-up ] ] cmos output buffer key input interrupt request key input interrupt (key-on wake-up) a key input interrupt request is generated by applying l level to any pin of port p8 that have been set to input mode. in other words, it is generated when and of input level goes from 1 to 0. an example of using a key input interrupt is shown in figure 15, where an inter- rupt request is generated by pressing one of the keys consisted as an active-low key matrix which inputs to ports p8 0 Cp8 3 . fig. 15 connection example when using key input interrupt and port p8 block diagram
19 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 38c3 group timer 12 mode register (t12m: address 0028 16 ) timer 1 count stop bit 0 : count operation 1 : count stop timer 2 count stop bit 0 : count operation 1 : count stop timer 1 count source selection bits 00 : f(x in )/16 or f(x cin )/16 01 : f(x cin ) 10 : f(x in )/32 or f(x cin )/32 11 : f(x in )/128 or f(x cin )/128 timer 2 count source selection bits 00 : underflow of timer 1 01 : f(x cin ) 10 : external count input cntr 0 11 : not available timer 1 output selection bit (p4 1 ) 0 : i/o port 1 : timer 1 output not used (returns ??when read) (do not write ??to this bit.) timer 34 mode register (t34m: address 0029 16 ) timer 3 count stop bit 0 : count operation 1 : count stop timer 4 count stop bit 0 : count operation 1 : count stop timer 3 count source selection bits 00 : f(x in )/16 or f(x cin )/16 01 : underflow of timer 2 10 : f(x in )/32 or f(x cin )/32 11 : f(x in )/128 or f(x cin )/128 timer 4 count source selection bits 00 : f(x in )/16 or f(x cin )/16 01 : underflow of timer 3 10 : external count input cntr 1 11 : not available timer 3 output selection bit (p4 2 ) 0 : i/o port 1 : timer 3 output not used (returns ??when read) (do not write ??to this bit.) timer 56 mode register (t56m: address 002a 16 ) timer 5 count stop bit 0 : count operation 1 : count stop timer 6 count stop bit 0 : count operation 1 : count stop timer 5 count source selection bit 0 : f(x in )/16 or f(x cin )/16 1 : underflow of timer 4 timer 6 operation mode selection bit 0 : timer mode 1 : pwm mode timer 6 count source selection bits 00 : f(x in )/16 or f(x cin )/16 01 : underflow of timer 5 10 : underflow of timer 4 11 : not available timer 6 (pwm) output selection bit (p5 2 ) 0 : i/o port 1 : timer 6 output not used (returns ??when read) (do not write ??to this bit.) b7 b0 b7 b0 b7 b0 timers 8-bit timer the 38c3 group has six built-in timers : timer 1, timer 2, timer 3, timer 4, timer 5, and timer 6. each timer has the 8-bit timer latch. all timers are down-counters. when the timer reaches 00 16 , an underflow occurs with the next count pulse. then the contents of the timer latch is reloaded into the timer and the timer continues down-counting. when a timer underflows, the interrupt request bit corresponding to that timer is set to 1. the count can be stopped by setting the stop bit of each timer to 1. the system clock f can be set to either the high-speed mode or low- speed mode with the cpu mode register. at the same time, timer internal count source is switched to either f(x in ) or f(x cin ). l timer 1, timer 2 the count sources of timer 1 and timer 2 can be selected by setting the timer 12 mode register. a rectangular waveform of timer 1 under- flow signal divided by 2 is output from the p4 1 /t1 out pin. the wave- form polarity changes each time timer 1 overflows. the active edge of the external clock cntr 0 can be switched with the bit 6 of the interrupt edge selection register. at reset or when executing the stp instruction, all bits of the timer 12 mode register are cleared to 0, timer 1 is set to ff 16 , and timer 2 is set to 01 16 . l timer 3, timer 4 the count sources of timer 3 and timer 4 can be selected by setting the timer 34 mode register. a rectangular waveform of timer 3 under- flow signal divided by 2 is output from the p4 2 /t3 out pin. the wave- form polarity changes each time timer 3 overflows. the active edge of the external clock cntr 1 can be switched with the bit 7 of the interrupt edge selection register. l timer 5, timer 6 the count sources of timer 5 and timer 6 can be selected by setting the timer 56 mode register. a rectangular waveform of timer 6 under- flow signal divided by 2 can be output from the p5 2 /pwm 1 pin. l timer 6 pwm 1 mode timer 6 can output a rectangular waveform with h duty cycle n/ (n+m) from the p5 2 /pwm 1 pin by setting the timer 56 mode register (refer to figure 17). the n is the value set in timer 6 latch (address 0025 16 ) and m is the value in the timer 6 pwm register (address 0027 16 ). if n is 0, the pwm output is l, if m is 0, the pwm output is h (n = 0 is prior than m = 0). in the pwm mode, interrupts occur at the rising edge of the pwm output. fig. 16 structure of timer related register
20 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 38c3 group x in p4 2 /t3 out 1/2 x cin ? ? ?1 ?0 ?1 ?0 ?1 ?0 ?0 ? ? ?1 ?0 ?0 ?0 ?1 p4 1 /t1 out 1/2 p5 3 /cntr 0 ?0 1/2 pwm p5 2 /pwm 1 ? ? p5 4 /cntr 1 1/2 ?1 ?1 ?0 ?0 internal system clock selection bit timer 1 count source selection bit timer 1 interrupt request data bus timer 1 latch (8) timer 1 (8) ff 16 timer 1 count stop bit reset stp instruction p4 1 latch timer 1 output selection bit p4 1 direction register timer 2 count source selection bit timer 2 latch (8) timer 2 (8) timer 2 count stop bit 01 16 timer 3 count source selection bit timer 3 latch (8) timer 3 (8) timer 3 count stop bit timer 2 interrupt request timer 3 interrupt request p4 2 latch rising/falling active edge switch timer 3 output selection bit p4 2 direction register timer 4 count source selection bit timer 4 latch (8) timer 4 (8) timer 4 count stop bit rising/falling active edge switch timer 4 interrupt request timer 5 count source selection bit timer 5 latch (8) timer 5 (8) timer 5 count stop bit timer 5 interrupt request p5 2 latch timer 6 output selection bit p5 2 direction register timer 6 count source selection bit timer 6 latch (8) timer 6 (8) timer 6 count stop bit timer 6 pwm register (8) timer 6 operation mode selection bit timer 6 interrupt request 1/16 1/128 1/32 cntr 1 interrupt request fig. 17 block diagram of timer
21 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 38c3 group t s timer 6 count source n 5 ts m 5 ts (n+m) 5 ts note: pwm waveform (duty : n/(n+m) and period : (n+m) 5 ts) is output. n: setting value of timer 6 m: setting value of timer 6 pwm register ts: period of timer 6 count source timer 6 interrupt request timer 6 interrupt request timer 6 pwm mode fig. 18 timing chart of timer 6 pwm 1 mode 16-bit timer timer a is a 16-bit timer that can be selected in one of four modes by the timer a mode register and the timer a control register. l timer a the timer a operates as down-count. when the timer contents reach 0000 16 , an underflow occurs at the next count pulse and the timer latch contents are reloaded. after that, the timer continues count- down. when the timer underflows, the interrupt request bit correspond- ing to the timer a is set to 1. (1) timer mode the count source can be selected by setting the timer a mode regis- ter. (2) pulse output mode pulses of which polarity is inverted each time the timer underflows are output from the ta out pin. except for that, this mode operates just as in the timer mode. when using this mode, set port p5 0 sharing the ta out pin to output mode. (3) igbt output mode after dummy output from the ta out pin, count starts with the int 0 pin input as a trigger. when the trigger is detected or the timer a underflows, h is output from the the ta out pin. when the count value corresponds with the compare register value, the ta out output becomes l. when the int 0 signal becomes h, the ta out output is forced to become l. after noise is cleared by noise filters, judging continuous 4-time same levels with sampling clocks to be signals, the int 0 signal can use 4 types of delay time by a delay circuit. when using this mode, set port p5 5 sharing the int 0 pin to input mode and set port p5 0 sharing the ta out pin to output mode. it is possible to force the timer a output to be l using pins int 1 and int 2 by the timer a control register. (4) pwm mode igbt dummy output, an external trigger with the int 0 pin and output control with pins int 1 and int 2 are not used. except for those, this mode operates just as in the igbt output mode. the period of pwm waveform is specified by the timer a set value. the h term is specified by the compare register set value. when using this mode, set port p5 0 sharing the ta out pin to output mode.
22 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 38c3 group timer a underflow interrupt request timer a (high-order) (8) timer a (low-order) (8) timer a (high-order) latch (8) timer a (low-order) latch (8) timer a operating mode bits timer a write control bit data bus x in 1/1 1/2 1/4 timer a count source selection bit 1/8 output selection bit p5 0 latch ta out active edge switch bit p5 0 /ta out p5 0 direction register s ? ? q q d compare register (high-order) (8) compare register (low-order) (8) 1/2 1/4 divider noise filter sampling clock selection bit int 0 0 m s delay circuit external trigger delay time selection bit 4/f(x in ) ta out output control bit 1 ta out output control bit 2 ? ? ? ? ?0 r timer a start signal int 1 int 2 00 01 10 11 internal trigger start ?0? ?1? ?1 ?0 match ?0? ?1? ?1 timer a operating mode bits ta out active edge switch bit s ? ? q q t s pulse output mode igbt output mode pwm mode 8/f(x in ) 16/f(x in ) note: the initial value of m version becomes ??(output). (note) noise filter (4-time same levels judgement) divider fig. 19 block diagram of timer a fig. 20 structure of timer a related registers b7 b0 timer a control register (tacon : address 0031 16 ) noise filter sampling clock selection bit 0 : f(x in )/2 1 : f(x in )/4 external trigger delay time selection bits 0 0 : no delay 0 1 : ( 4/f(x in )) m s 1 0 : ( 8/f(x in )) m s 1 1 : (16/f(x in )) m s timer a output control bit 1 (p5 6 ) 0 : not used 1 : int1 interrupt used timer a output control bit 2 (p5 7 ) 0 : not used 1 : int2 interrupt used not used (returns 0 when read) b7 b0 timer a mode register (tam : address 0030 16 ) timer a operating mode bits 00 : timer mode 01 : pulse output mode 10 : igbt output mode 11 : pwm mode timer a write control bit 0 : write data to both timer latch and timer 1 : write data to timer latch onl y timer a count source selection bits 0 0 : f(x in ) 0 1 : f(x in )/2 1 0 : f(x in )/4 1 1 : f(x in )/8 timer a output active edge switch bit 0 : output starts with l level 1 : output starts with h level timer a count stop bit 0 : count operating 1 : count stop timer a output selection bit (p5 0 ) 0 : i/o port 1 : timer a output
23 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 38c3 group fig. 21 timing chart of timer a pwm, igbt output modes n notes on timer a (1) write order to timer a ? in the timer and pulse output modes, write to the timer a register (low-order) first and to the timer a register (high-order) next. do not write to only one side. ? in the igbt and pwm modes, write to the registers as follows: the compare register (high- and low-order) the timer a register (low-order) the timer a register (high-order). it is possible to use whichever order to write to the compare register (high- and low-order). however, write both the compare register and the timer a register at the same time. (2) read order to timer a ? in all modes, read to the timer a register (high-order) first and to the timer a register (low-order) next. read order to the compare regis- ter is not specified. ? if reading to the timer a register during write operation or writing to it during read operation, normal operation will not be performed. (3) write to timer a ? when writing a value to the timer a address to write to the latch only, the value is set into the reload latch and the timer is updated at the next underflow. normally, when writing a value to the timer a address, the value is set into the timer and the timer latch at the same time, because they are written at the same time. when writing to the latch only, if the write timing to the high-order reload latch and the underflow timing are almost the same, an ex- pected value may be set in the high-order counter. ? do not switch the timer count source during timer count operation. stop the timer count before switching it. additionally, when perform- ing write to the latch and the timer at the same time, the timer count value may change large. (4) set of timer a mode register set the write control bit to 1 (write to the latch only) when setting the igbt and pwm modes. output waveform simultaneously reflects the contents of both regis- ters at the next underflow after writing to the timer a register (high- order). (5) output control function of timer a when using the output control function (int 1 and int 2 ) in the igbt mode, set the levels of int 1 and int 2 to h in the falling edge active or to l in the rising edge active before switching to the igbt mode. t s timer a count source timer a pwm mode igbt output mode (n-m+1) 5 ts m 5 ts (n+1) 5 ts note: pwm waveform (duty : (n-m+1)/(n+1) and period : (n+1) 5 ts) is output. n : setting value of timer a m : setting value of compare register ts : period of timer a count source
24 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 38c3 group data bus x cin x in serial i/o interrupt request p4 6 latch p4 5 latch serial i/o port selection bit p4 7 latch serial i/o counter (3) serial i/o shift register (8) synchronous circuit internal system clock selection bit serial i/o port selection bit ? ? s clk s rdy output selection bit external clock synchronous clock selection bit divider 1/8 1/16 1/32 1/64 1/128 1/256 internal synchronous clock selection bits p4 6 /s clk1 p4 5 /s out p4 4 /s in s rdy p4 7 /s rdy p4 0 latch serial i/o port selection bit p4 0 /s clk2 ? ? ? ? ? ? ? ? ? ? serial i/o the 38c3 group has a built-in 8-bit clock synchronous serial i/o. the i/o pins of serial i/o also operate as i/o port p4, and their function is selected by the serial i/o control register 1 (address 0019 16 ). fig. 22 block diagram of serial i/o
25 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 38c3 group [serial i/o control registers 1, 2 (siocon1, siocon2)] 0019 16 , 001a 16 each of the serial i/o control registers 1, 2 contains 8 bits that select various control parameters of serial i/o. l operation in serial i/o mode either an internal clock or an external clock can be selected as the synchronous clock for serial i/o transfer. a dedicated divider is built- in as the internal clock, giving a choice of six clocks. when internal clock is selected, serial i/o starts to transfer by a write signal to the serial i/o register (address 001b 16 ). after 8 bits have been transferred, the s out pin goes to high impedance. when external clock is selected, the clock must be controlled exter- nally because the contents of the serial i/o register continue to shift while the transfer clock is input. in this case, the s out pin does not go to high impedance at the completion of data transfer. the interrupt request bit is set at the end of the transfer of 8 bits, regardless of whether the internal or external clock is selected. fig. 23 structure of serial i/o control register fig. 24 serial i/o timing (for lsb first) serial i/o control register 1 (siocon1 : address 0019 16 ) internal synchronous clock selection bits b2 b1 b0 0 0 0 : f(x in )/8 or f(x cin )/8 0 0 1 : f(x in )/16 or f(x cin )/16 0 1 0 : f(x in )32 or f(x cin )/32 0 1 1 : f(x in )/64 or f(x cin )/64 1 1 0 : f(x in )/128 or f(x cin )/128 1 1 1 : f(x in )/256 or f(x cin )/256 serial i/o port selection bit (p4 0 , p4 5 , p4 6 ) 0 : i/o port 1 : s out , s clk1 , s clk2 signal pin s rdy output selection bit (p4 7 ) 0 : i/o port 1 : s rdy signal pin transfer direction selection bit 0 : lsb first 1 : msb first synchronous clock selection bit 0 : external clock 1 : internal clock p-channel output disable bit (p4 0 , p4 5 , p4 6 ) 0 : cmos output (in output mode) 1 : n-channel open-drain (in output mode) b7 b0 serial i/o control register 2 (siocon2: address 001a 16 ) synchronous clock output pin selection bit 0 : s clk1 1 : s clk2 not used (returns ??when read) b7 b0 interrupt request bit set synchronous clock transfer clock serial i/o register write signal serial i/o output s out serial i/o input s in receive enable signal s rdy d 0 d 1 d 2 d 3 d 4 d 5 d 6 d 7 note: when internal clock is selected, the s out pin goes to high impedance after transfer ends. (note)
26 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 38c3 group a-d converter the 38c3 group has a 10-bit a-d converter. the a-d converter per- forms successive approximation conversion. [a-d conversion register (ad)] 0033 16 , 0034 16 one of these registers is a high-order register, and the other is a low- order register. the high-order 8 bits of a conversion result is stored in the a-d conversion register (high-order) (address 0034 16 ), and the low-order 2 bits of the same result are stored in bit 7 and bit 6 of the a-d conversion register (low-order) (address 0033 16 ). during a-d conversion, do not read these registers. [a-d control register (adcon)] 0032 16 this register controls a-d converter. bits 2 to 0 are analog input pin selection bits. bit 4 is an ad conversion completion bit and 0 during a-d conversion. this bit is set to 1 upon completion of a-d conver- sion. a-d conversion is started by setting 0 in this bit. [comparison voltage generator] the comparison voltage generator divides the voltage between av ss and v ref , and outputs the divided voltages. [channel selector] the channel selector selects one of the input ports p6 7 /an7Cp6 0 / an0 and inputs it to the comparator. [comparator and control circuit] the comparator and control circuit compares an analog input volt- age with the comparison voltage and stores the result in the a-d conversion register. when an a-d conversion is completed, the con- trol circuit sets the ad conversion completion bit and the ad conver- sion interrupt request bit to 1. fig. 26 block diagram of a-d converter note that the comparator is constructed linked to a capacitor, so set f(x in ) to at least 500 khz during a-d conversion. use a cpu system clock dividing the main clock x in as the internal system clock. fig. 25 structure of a-d control register ad conversion result stored bits a-d conversion register (high-order) (adh: address 0034 16 ) b7 b0 analog input pin selection bits 000: p6 0 /an 0 001: p6 1 /an 1 010: p6 2 /an 2 011: p6 3 /an 3 100: p6 4 /an 4 101: p6 5 /an 5 110: p6 6 /an 6 111: p6 7 /an 7 a-d control register (adcon: address 0032 16 ) ad conversion completion bit 0: conversion in progress 1: conversion completed not used (returns ??when read) b7 b0 not used (returns ??when read) ad conversion result stored bits a-d conversion register (low-order) (adl: address 0033 16 ) b7 b0 not used (returns ??when read) data bus av ss a-d interrupt request b7 b0 3 p6 0 /an 0 p6 1 /an 1 p6 2 /an 2 p6 3 /an 3 p6 4 /an 4 p6 5 /an 5 p6 6 /an 6 p6 7 /an 7 a-d control register channel selector comparator a-d control circuit a-d conversion register (h) a-d conversion register (l) (address 0034 16 ) (address 0033 16 ) resistor ladder v ref
27 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 38c3 group lcd drive control circuit the 38c3 group has the built-in liquid crystal display (lcd) drive control circuit consisting of the following. ? lcd display ram ? segment output enable register ? lcd mode register ? selector ? timing controller ? common driver ? segment driver ? bias control circuit a maximum of 32 segment output pins and 4 common output pins can be used. up to 128 pixels can be controlled for a lcd display. when the lcd enable bit is set to 1 after data is set in the lcd mode register, the fig. 27 structure of lcd related registers segment output enable register, and the lcd display ram, the lcd drive control circuit starts reading the display data automatically, per- forms the bias control and the duty ratio control, and displays the data on the lcd panel. table 7 maximum number of display pixels at each duty ratio duty ratio 1 2 3 4 maximum number of display pixels 32 dots or 8 segment lcd 4 digits 64 dots or 8 segment lcd 8 digits 96 dots or 8 segment lcd 12 digits 128 dots or 8 segment lcd 16 digits segment output enable bit 0 0 : i/o ports p2 0 ?2 3 1 : segment output seg 0 ?eg 3 segment output enable bit 1 0 : i/o ports p2 4 ?2 7 1 : segment output seg 4 ?eg 7 segment output enable bit 2 0 : i/o ports p0 0 ?0 3 1 : segment output seg 8 ?eg 11 segment output enable bit 3 0 : i/o ports p0 4 ?0 7 1 : segment output seg 12 ?eg 15 segment output enable bit 4 0 : i/o ports p1 0 ?1 3 1 : segment output seg 16 ?eg 19 segment output enable bit 5 0 : i/o ports p1 4 ?1 7 1 : segment output seg 20 ?eg 23 segment output enable bit 6 0 : output ports p3 0 ?3 3 1 : segment output seg 24 ?eg 27 segment output enable bit 7 0 : output ports p3 4 ?3 7 1 : segment output seg 28 ?eg 31 segment output enable register (seg : address 0038 16 ) b7 b0 lcd mode register (lm : address 0039 16 ) duty ratio selection bits 0 0 : 1 (use com 0 ) 0 1 : 2 (use com 0 ,com 1 ) 1 0 : 3 (use com 0 ?om 2 ) 1 1 : 4 (use com 0 ?om 3 ) bias control bit 0 : 1/3 bias 1 : 1/2 bias lcd enable bit 0 : lcd off 1 : lcd on not used (returns ??when read) (do not write ??to this bit.) lcd circuit divider division ratio selection bits 0 0 : clock input 0 1 : 2 division of clock input 1 0 : 4 division of clock input 1 1 : 8 division of clock input lcdck count source selection bit (note) 0 : f(x cin )/32 1 : f(x in )/8192 (f(x cin )/8192 in low-speed mode) note : lcdck is a clock for a lcd timing controller. b7 b0
28 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 38c3 group fig. 28 block diagram of lcd controller/driver data bus timing controller lcd divider f(x cin )/32 f(x in )/8192 (f(x cin )/8192 in low-speed mode) common driver bias control com 0 com 1 com 2 com 3 v ss v l1 v l2 v l3 p2 3 /seg 3 p2 2 /seg 2 p2 1 /seg 1 p2 0 /seg 0 address 0040 16 address 0041 16 ? ? lcdck lcdck count source selection bit lcd circuit divider division ratio selection bits bias control bit lcd enable bit duty ratio selection bits 2 2 selector selector selector selector selector selector lcd display ram address 004f 16 p3 6 /seg 30 p0 4 /seg 12 p3 7 /seg 31 segment driver segment driver segment driver segment driver segment driver segment driver common driver common driver common driver
29 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 38c3 group duty ratio 1 2 3 4 voltage value v l3 =v lcd v l2 =2/3 v lcd v l1 =1/3 v lcd v l3 =v lcd v l2 =v l1 =1/2 v lcd v l3 =v lcd v l2 =v l1 =v ss bias control and applied voltage to lcd power input pins to the lcd power input pins (v l1 Cv l3 ), apply the voltage value shown in table 8 according to the bias value. select a bias value by the bias control bit (bit 2 of the lcd mode register). common pin and duty ratio control the common pins (com 0 Ccom 3 ) to be used are determined by duty ratio. select duty ratio by the duty ratio selection bits (bits 0 and 1 of the lcd mode register). when selecting 1-duty ratio, 1/1 bias can be used. fig. 29 example of circuit at each bias table 8 bias control and applied voltage to v l1 Cv l3 bias value 1/3 bias 1/2 bias 1/1 bias (1-duty ratio) note 1: v lcd is the maximum value of supplied voltage for the lcd panel. table 9 duty ratio control and common pins used notes 1: com 1 , com 2 , and com 3 are open. 2: com 2 and com 3 are open. 3: com 3 is open. common pins used com 0 (note 1) com 0 , com 1 (note 2) com 0 Ccom 2 (note 3) com 0 Ccom 3 bit 1 0 0 1 1 bit 0 0 1 0 1 duty ratio selection bit r4 r5 r4 = r5 contrast control 1/2 bias v l3 contrast control r1 r2 r3 r1 = r2 = r3 1/3 bias r6 contrast control 1/1 bias v l1 v l2 v l3 v l1 v l2 v l3 v l1 v l2
30 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 38c3 group lcd display ram address 0040 16 to 004f 16 is the designated ram for the lcd dis- play. when 1 are written to these addresses, the corresponding seg- ments of the lcd display panel are turned on. lcd drive timing the lcdck timing frequency (lcd drive timing) is generated inter- nally and the frame frequency can be determined with the following equation; (frequency of count source for lcdck) (divider division ratio for lcd) f(lcdck)= f(lcdck) duty ratio frame frequency= fig. 30 lcd display ram map bit address 0046 16 0047 16 0048 16 0049 16 004a 16 004b 16 004c 16 004d 16 004e 16 004f 16 seg 13 seg 15 seg 17 seg 19 seg 21 seg 23 seg 25 seg 27 seg 29 seg 31 0040 16 0041 16 0042 16 0043 16 0044 16 0045 16 seg 1 seg 3 seg 5 seg 7 seg 9 seg 11 76543210 seg 12 seg 14 seg 16 seg 18 seg 20 seg 22 seg 24 seg 26 seg 28 seg 30 seg 0 seg 2 seg 4 seg 6 seg 8 seg 10 com 3 com 0 com 2 com 1 com 0 com 3 com 2 com 1
31 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 38c3 group internal signal lcdck timing 1/4 duty voltage level v l3 v l2 =v l1 v ss v l3 v ss com 0 com 1 com 2 com 3 seg 0 off on off on com 3 com 2 com 1 com 0 com 3 com 2 com 1 com 0 1/3 duty v l3 v l2 =v l1 v ss v l3 v ss off on on off on off 1/2 duty com 0 com 1 com 2 seg 0 com 0 com 1 seg 0 v l3 v l2 =v l1 v ss v l3 v ss off on off on off on off on com 0 com 2 com 1 com 0 com 2 com 1 com 0 com 2 com 1 com 0 com 1 com 0 com 1 com 0 com 1 com 0 1/1 duty (1/1 bias) com 0 seg 0 v l3 v l2 =v l1 =v ss v l3 v ss on off fig. 31 lcd drive waveform (1/2 bias)
32 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 38c3 group fig. 32 lcd drive waveform (1/3 bias) internal signal lcdck timing 1/4 duty voltage level v l3 v ss com 0 com 1 com 2 com 3 seg 0 off on off on com 3 com 2 com 1 com 0 com 3 com 2 com 1 com 0 1/3 duty off on on off on off 1/2 duty com 0 com 1 com 2 seg 0 com 0 com 1 seg 0 off on off on off on off on v l3 v l2 v ss v l1 v l3 v l2 v ss v l1 v l3 v ss v l3 v l2 v ss v l1 v l3 v ss com 0 com 2 com 1 com 0 com 2 com 1 com 0 com 2 com 1 com 0 com 1 com 0 com 1 com 0 com 1 com 0
33 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 38c3 group f output control bit 0 : port function 1 : f clock output f output control register (ckout : address 002b 16 ) b7 b0 not used (return ??when read) f clock output function the internal system clock f can be output from port p4 3 by setting the f output control register. set 1 to bit 3 of the port p4 direction register when outputting f clock. fig. 33 structure of f output control register
34 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 38c3 group rom correct enable register 1(address 0f01 16 ) rc1 b7 b0 rom correct address 1 enable bit 0 : disabled 1 : enabled rom correct address 2 enable bit 0 : disabled 1 : enabled rom correct address 3 enable bit 0 : disabled 1 : enabled rom correct address 4 enable bit 0 : disabled 1 : enabled rom correct address 5 enable bit 0 : disabled 1 : enabled rom correct address 6 enable bit 0 : disabled 1 : enabled rom correct address 7 enable bit 0 : disabled 1 : enabled rom correct address 8 enable bit 0 : disabled 1 : enabled rom correct data 1 rom correct data 2 rom correct data 3 rom correct data 4 rom correct data 5 rom correct data 6 rom correct data 7 rom correct data 8 0050 16 0051 16 0052 16 0053 16 0054 16 0055 16 0056 16 0057 16 0f02 16 0f03 16 0f04 16 0f05 16 0f06 16 0f07 16 0f08 16 0f09 16 0f0a 16 0f0b 16 0f0c 16 0f0d 16 0f0e 16 0f0f 16 0f10 16 0f11 16 rom correct high-order address register 1 rom correct low-order address register 1 rom correct high-order address register 2 rom correct low-order address register 2 rom correct high-order address register 3 rom correct low-order address register 3 rom correct high-order address register 4 rom correct low-order address register 4 rom correct high-order address register 5 rom correct low-order address register 5 rom correct high-order address register 6 rom correct low-order address register 6 rom correct high-order address register 7 rom correct low-order address register 7 rom correct high-order address register 8 rom correct low-order address register 8 rom correction function the 38c3 group has the rom correction function correcting data at the arbitrary addresses in the rom area. [rom correct address register] 0f02 16 C 0f11 16 this is the register to store the address performing rom correction. there are two types of registers to correct up to 8 addresses: one is the register to store the high-order address and the other is to store the low-order address. [rom correct enable register (rc1)] 0f01 16 this is the register to enable the rom correction function. when set- ting the bit corresponding to the rom correction address to 1, the rom correction function is enabled. it becomes invalid to the addresses of which corresponding bit is 0. all bits are 0 at the initial state. [rom correct data] this is the register to store a correct data for the address specified by the rom correct address register. n notes on rom correction function 1. to use the rom correction function, transfer data to each rom correct data register in the initial setting. 2. do not specify the same addresses in the rom correct address register. fig. 34 structure of rom correct address register fig. 35 structure of rom correct data fig. 36 structure of rom correct enable register 1
35 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 38c3 group reset internal reset address data sync f x in fffc fffd ad h, ad l ad l ???? x in : about 8000 cycles note reset address from vector table 1: the frequency relation of f(x in ) and f( f ) is f(x in ) = 8 ? f( f ). 2: the question marks (?) indicate an undefined state that depends on the previous state. ad h (note) 0.2v cc 0v 0v poweron v cc reset v cc reset power source voltage detection circuit power source voltage reset input voltage note : reset release voltage ; vcc=2.5 v reset circuit to reset the microcomputer, reset pin should be held at an l level for 2 m s or more. then the reset pin is returned to an h level (the power source voltage should be between 2.5 v and 5.5 v, and the oscillation should be stable), reset is released. after the reset is com- pleted, the program starts from the address contained in address fffd 16 (high-order byte) and address fffc 16 (low-order byte). make sure that the reset input voltage is less than 0.5 v for v cc of 2.5 v (switching to the high-speed mode, a power source voltage must be between 4.0 v and 5.5 v). fig. 38 reset sequence fig. 37 reset circuit example
36 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 38c3 group 00 16 00 16 ff 16 ff 16 002a 16 002b 16 002c 16 002d 16 002e 16 002f 16 0031 16 x: not fixed since the initial values for other than above mentioned registers and ram contents are indefinite at reset, they must be set. in the m version, bit 0 of the port p5 direction register becomes ?. address register contents address register contents 00 16 00 16 00 16 00 16 00 16 00 16 00 16 00 16 00 16 00 16 00 16 00 16 00 16 ff 16 ff 16 ff 16 00 16 00 16 0000 16 0001 16 0002 16 0004 16 0005 16 0006 16 0008 16 0009 16 000a 16 000b 16 000c 16 000d 16 000e 16 000f 16 0010 16 0011 16 0016 16 0017 16 0018 16 0019 16 001a 16 0020 16 0021 16 0022 16 0023 16 0024 16 0025 16 0028 16 timer 4 port p0 port p0 direction register port p1 port p2 port p2 direction register port p3 port p4 port p4 direction register port p5 port p5 direction register port p6 port p6 direction register port p7 port p7 direction register port p8 port p8 direction register port p8 output selection register serial i/o control register 1 serial i/o control register 2 timer 1 timer 2 timer 3 timer 5 timer 6 timer 12 mode register (1) (2) (3) (5) (6) (7) (8) (9) (10) (11) (12) (13) (14) (15) (16) (17) (18) (19) (20) (21) (22) (23) (24) (25) (26) (27) (28) (29) 00 16 0029 16 timer 34 mode register (30) (32) (33) (34) (35) (36) (37) (38) timer 56 mode register f output control register timer a (low-order) timer a (high-order) compare register (low-order) compare register (high-order) timer a mode register timer a control register 10 16 00 16 00 16 00 16 00 16 0032 16 0038 16 003b 16 003c 16 003d 16 003e 16 003f 16 (39) (40) (43) (44) (45) (46) (47) a-d control register segment output enable register cpu mode register interrupt request register 1 interrupt request register 2 interrupt control register 1 interrupt control register 2 00 16 00 16 00 16 00 16 pull register a pull register b (31) fffc 16 contents (ps) (pc h ) (pc l ) (65) (66) program counter processor status register fffd 16 contents 1 5 0030 16 00 16 00 16 0f 16 00 16 00 16 00 16 00 16 ff 16 01 16 ff 16 010010 0 0 00 16 5 5 5 55 5 00 16 0003 16 port p1 direction register (4) 003a 16 (41) (42) lcd mode register interrupt edge selection register 00 16 00 16 0039 16 00 16 ff 16 ff 16 0f01 16 0f02 16 0f03 16 0f04 16 (48) (49) (50) (51) rom correct enable register 1 rom correct high-order address register 1 rom correct low-order address register 1 rom correct high-order address register 2 ff 16 ff 16 0f05 16 0f06 16 0f07 16 (52) (53) (54) rom correct low-order address register 2 ff 16 ff 16 rom correct high-order address register 3 rom correct low-order address register 3 ff 16 ff 16 0f08 16 0f09 16 0f0a 16 (55) (56) (57) rom correct high-order address register 4 rom correct low-order address register 4 rom correct high-order address register 5 ff 16 ff 16 0f0b 16 0f0c 16 0f0d 16 (58) (59) (60) rom correct low-order address register 5 ff 16 ff 16 rom correct high-order address register 6 rom correct low-order address register 6 ff 16 ff 16 0f0e 16 0f0f 16 0f10 16 (61) (62) (63) rom correct high-order address register 7 rom correct low-order address register 7 rom correct high-order address register 8 ff 16 ff 16 0f11 16 (64) rom correct low-order address register 8 fig. 39 internal status at reset
37 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 38c3 group x in x out external oscillation circuit v cc v ss open x cin x cout c cin c cout rf rd x cin x cout x in x out c in c out c cin c cout rf rd clock generating circuit the 38c3 group has two built-in oscillation circuits. an oscillation circuit can be formed by connecting a resonator between x in and x out (x cin and x cout ). use the circuit constants in accordance with the resonator manufacturer's recommended values. no external re- sistor is needed between x in and x out since a feedback resistor exists on-chip. however, an external feedback resistor is needed be- tween x cin and x cout . immediately after power on, only the x in oscillation circuit starts os- cillating, and x cin and x cout pins function as i/o ports. frequency control (1) middle-speed mode the internal system clock is the frequency of x in divided by 8. after reset, this mode is selected. (2) high-speed mode the internal system clock is the frequency of x in divided by 2. (3) low-speed mode the internal system clock is the frequency of x cin divided by 2. n notes on clock generating circuit if you switch the mode between middle/high-speed and low-speed, stabilize both x in and x cin oscillations. the sufficient time is required for the sub clock to stabilize, especially immediately after power on and at returning from stop mode. when switching the mode between middle/high-speed and low-speed, set the frequency on condition that f(x in ) > 3f(x cin ). oscillation control (1) stop mode if the stp instruction is executed, the internal system clock stops at an h level, and x in and x cin oscillators stop. timer 1 is set to ff 16 and timer 2 is set to 01 16 . either x in divided by 16 or x cin divided by 16 is input to timer 1 as count source, and the output of timer 1 is connected to timer 2. the bits of the timer 12 mode register are cleared to 0. set the interrupt enable bits of the timer 1 and timer 2 to disabled (0) before execut- ing the stp instruction. oscillator restarts when an external interrupt is received, but the internal system clock is not supplied to the cpu until timer 2 underflows. this allows time for the clock circuit oscilla- tion to stabilize. (2) wait mode if the wit instruction is executed, the internal system clock stops at an h level. the states of x in and x cin are the same as the state before executing the wit instruction. the internal system clock re- starts at reset or when an interrupt is received. since the oscillator does not stop, normal operation can be started immediately after the clock is restarted. fig. 40 ceramic resonator circuit fig. 41 external clock input circuit
38 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 38c3 group wit instruction stp instruction timing f (internal system clock) s r q stp instruction s r q main clock stop bit s r q timer 2 timer 1 1/2 1/4 x in x out interrupt request reset port x c switch bit 1 0 timer 1 count source selection bit timer 2 count source selection bit low-speed mode middle-/high-speed mode internal system clock selection bit (note) middle-speed mode high-speed mode or low-speed mode note : when using the low-speed mode, set the port x c switch bit to 1 . main clock division ratio selection bit 1 0 1 0 1 0 interrupt disable flag i 1/2 x cout x cin 1 0 fig. 42 clock generating circuit block diagram
39 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 38c3 group cm 4 : port xc switch bit 0: i/o port function 1: x cin -x cout oscillating function cm 5 : main clock (x in - x out ) stop bit 0: oscillating 1: stopped cm 6 : main clock division ratio selection bit 0: f(x in )/2(high-speed mode) 1: f(x in )/8 (middle-speed mode) cm 7 : internal system clock selection bit 0: x in ? out selected (middle-/high-speed mode) 1: x cin ? cout selected (low-speed mode) reset cm 4 cm 7 cm 4 cm 5 cm 6 cm 6 cpu mode register (cpum : address 003b 16 ) b7 b4 cm 7 cm 5 cm 6 cm 6 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? cm 4 ? ? cm 4 ? ? ? ? cm 5 ? ? ? ? cm 5 ? ? ? ? ? ? cm 6 cm 6 cm 6 cm 6 cm 7 =0(8 mhz selected) cm 6 =1(middle-speed) cm 5 =0(8 mhz oscillating) cm 4 =0(32 khz stopped) 1: switch the mode by the allows shown between the mode blocks. (do not switch between the mode directly without an allow.) 2: the all modes can be switched to the stop mode or the wait mode and return to the source mode when the stop mode or the wait m ode is ended. 3: timer,lcd operate in the wait mode. 4: when the stop mode is ended, a delay of approximately 1 ms occurs by connecting timer 1 and timer 2 in middle-/high-speed mode . 5: when the stop mode is ended, a delay of approximately 0.25 s occurs in low-speed mode. 6: wait until oscillation stabilizes after oscillating the main clock x in before the switching from the low-speed mode to middle/high-speed mode. 7: the example assumes that 8 mhz is being applied to the x in pin and 32 khz to the x cin pin. f indicates the internal system clock. middle-speed mode (f( f )=1 mhz) middle-speed mode ((f( f )=1 mhz) cm 7 =0(8 mhz selected) cm 6 =0(high-speed) cm 5 =0(8 mhz oscillating) cm 4 =0(32 khz stopped) high-speed mode (f( f ) =4 mhz) cm 7 =0(8 mhz selected) cm 6 =0(high-speed) cm 5 =0(8 mhz oscillating) cm 4 =1(32 khz oscillating) high-speed mode (f( f ) =4 mhz) cm 7 =1(32 khz selected) cm 6 =0(high-speed) cm 5 =0(8 mhz oscillating) cm 4 =1(32 khz oscillating) low-speed mode (f( f ) =16 khz) cm 7 =1(32 khz selected) cm 6 =0(high-speed) cm 5 =1(8 mhz stopped) cm 4 =1(32 khz oscillating) cm 7 =0(8 mhz selected) cm 6 =1(middle-speed) cm 5 =0(8 mhz oscillating) cm 4 =1(32 khz oscillating) cm 7 =1(32 khz selected) cm 6 =1(middle-speed) cm 5 =0(8 mhz oscillating) cm 4 =1(32 khz oscillating) low-speed mode ((f( f )=16 khz) cm 7 =1(32 khz selected) cm 6 =1(middle-speed) cm 5 =1(8 mhz stopped) cm 4 =1(32 khz oscillating) low-speed mode (f( f ) =16 khz) low-speed mode ((f( f )=16 khz) notes fig. 43 state transitions of system clock
40 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 38c3 group notes on programming processor status register the contents of the processor status register (ps) after a reset are undefined, except for the interrupt disable flag (i) which is 1. after a reset, initialize flags which affect program execution. in particular, it is essential to initialize the index x mode (t) and the decimal mode (d) flags because of their effect on calculations. interrupts the contents of the interrupt request bits do not change immediately after they have been written. after writing to an interrupt request reg- ister, execute at least one instruction before performing a bbc or bbs instruction. decimal calculations ? to calculate in decimal notation, set the decimal mode flag (d) to 1, then execute an adc or sbc instruction. after executing an adc or sbc instruction, execute at least one instruction before executing a sec, clc, or cld instruction. ? in decimal mode, the values of the negative (n), overflow (v), and zero (z) flags are invalid. timers if a value n (between 0 and 255) is written to a timer latch, the fre- quency division ratio is 1/(n+1). multiplication and division instructions ? the index x mode (t) and the decimal mode (d) flags do not affect the mul and div instruction. ? the execution of these instructions does not change the contents of the processor status register. ports the contents of the port direction registers cannot be read. the fol- lowing cannot be used: ? the data transfer instruction (lda, etc.) ? the operation instruction when the index x mode flag (t) is 1 ? the addressing mode which uses the value of a direction register as an index ? the bit-test instruction (bbc or bbs, etc.) to a direction register ? the read-modify-write instructions (ror, clb, or seb, etc.) to a direction register. use instructions such as ldm and sta, etc., to set the port direction registers. serial i/o ? using an external clock when using an external clock, input h to the external clock input pin and clear the serial i/o interrupt request bit before executing serial i/o transfer and serial i/o automatic transfer. ? using an internal clock when using an internal clock, set the synchronous clock to the in- ternal clock, then clear the serial i/o interrupt request bit before executing a serial i/o transfer and serial i/o automatic transfer. a-d converter the comparator uses internal capacitors whose charge will be lost if the clock frequency is too low. therefore, make sure that f(x in ) is at least on 500 khz during an a-d conversion. do not execute the stp or wit instruction during an a-d conversion. instruction execution time the instruction execution time is obtained by multiplying the frequency of the internal system clock by the number of cycles needed to ex- ecute an instruction. the number of cycles required to execute an instruction is shown in the list of machine instructions. the frequency of the internal system clock is the same half of the x in frequency in high-speed mode. at stp instruction release at the stp instruction release, all bits of the timer 12 mode register are cleared. notes on use notes on built-in eprom version the p5 1 pin of the one time prom version or the eprom version functions as the power source input pin of the internal eprom. therefore, this pin is set at low input impedance, thereby being af- fected easily by noise. to prevent a malfunction due to noise, insert a resistor (approx. 5 k w ) in series with the p5 1 pin.
41 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 38c3 group name of programming adapter pca4738f-80a pca4738l-80a data required for mask orders the following are necessary when ordering a mask rom production: 1. mask rom order confirmation form 2. mark specification form 3. data to be written to rom, in eprom form (three identical copies) data required for rom writing orders the following are necessary when ordering a rom writing: 1. rom writing confirmation form 2. mark specification form 3. data to be written to rom, in eprom form (three identical copies) rom programming method the built-in prom of the blank one time prom version and built-in eprom version can be read or programmed with a general-purpose prom programmer using a special programming adapter. fig. 44 programming and testing of one time prom version table 10 programming adapter package 80p6n-a 80d0 the prom of the blank one time prom version is not tested or screened in the assembly process and following processes. to en- sure proper operation after programming, the procedure shown in figure 44 is recommended to verify programming. programming with prom programmer screening (caution) (150 c for 40 hours) verification with prom programmer functional check in target device the screening temperature is far higher than the storage temperature. never expose to 150 c exceeding 100 hours. caution :
42 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 38c3 group parameter power source voltage input voltage p0 0 Cp0 7 , p1 0 Cp1 7 , p2 0 Cp2 7, p4 0 Cp4 7 , p5 0 Cp5 7, p6 0 Cp6 7 , p7 0 , p7 1 , p8 0 Cp8 7 input voltage v l1 input voltage v l2 input voltage v l3 input voltage reset, x in output voltage p0 0 Cp0 7 , p1 0 Cp1 7 , p2 0 Cp2 7 , p3 0 Cp3 7 output voltage com 0 Ccom 3 output voltage p4 0 Cp4 7 , p5 0 , p5 2 Cp5 7, p6 0 Cp6 7 , p7 0 , p7 1 , p8 0 Cp8 7 output voltage x out power dissipation operating temperature storage temperature symbol v cc v i v i v i v i v i v o v o v o v o p d t opr t stg electrical characteristics table 11 absolute maximum ratings conditions ratings C0.3 to 7.0 C0.3 to v cc +0.3 C0.3 to v l2 v l1 to v l3 v l2 to v cc +0.3 C0.3 to v cc +0.3 C0.3 to v cc +0.3 C0.3 to v l3 +0.3 C0.3 to v l3 +0.3 C0.3 to v cc +0.3 C0.3 to v cc +0.3 300 C20 to 85 C40 to 125 unit v v v v v v v v v v v mw c c all voltages are based on vss. output transistors are cut off. at output port at segment output ta = 25c table 12 recommended operating conditions (vcc = 2.5 to 5.5 v, ta = C20 to 85c, unless otherwise noted) power source voltage high-speed mode f(x in ) = 8 mhz middle-speed mode f(x in ) = 8 mhz low-speed mode power source voltage a-d converter reference voltage analog power source voltage analog input voltage an 0 Can 7 h input voltage p0 0 Cp0 7 , p1 0 Cp1 7 , p2 0 Cp2 7 h input voltage p4 0 Cp4 7 , p5 0 Cp5 7 , p6 0 Cp6 7 , p7 0 , p7 1 (cm4 = 0) h input voltage p8 0 Cp8 7 h input voltage reset h input voltage x in l input voltage p0 0 Cp0 7 , p1 0 Cp1 7 , p2 0 Cp2 7 l input voltage p4 0 Cp4 7 , p5 0 Cp5 7 , p6 0 Cp6 7 , p7 0 , p7 1 (cm4 = 0) l input voltage p8 0 Cp8 7 l input voltage reset l input voltage x in v cc v ss v ref av ss v ia v ih v ih v ih v ih v ih v il v il v il v il v il limits v v v v v v v v v v v v v v v v v parameter min. 4.0 2.5 2.5 2.0 av ss 0.7v cc 0.8v cc 0.4v cc 0.8v cc 0.8v cc 0 0 0 0 0 typ. 5.0 5.0 5.0 0 0 max. 5.5 5.5 5.5 v cc v cc v cc v cc v cc v cc v cc 0.3v cc 0.2v cc 0.16v cc 0.2v cc 0.2v cc symbol unit
43 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 38c3 group h total peak output current (note 1) p0 0 Cp0 7 , p1 0 Cp1 7 , p2 0 Cp2 7 , p3 0 Cp3 7 p8 0 Cp8 7 , p5 0 h total peak output current (note 1) p4 0 Cp4 7 , p5 2 Cp5 7 , p6 0 Cp6 7 , p7 0 , p7 1 l total peak output current (note 1) p0 0 Cp0 7 , p1 0 Cp1 7 , p2 0 Cp2 7 , p3 0 Cp3 7 l total peak output current (note 1) p8 0 Cp8 7 , p5 0 l total peak output current (note 1) p4 0 Cp4 7 , p5 2 Cp5 7 , p6 0 Cp6 7 , p7 0 , p7 1 h total average output current (note 1) p0 0 Cp0 7 , p1 0 Cp1 7 , p2 0 Cp2 7 , p3 0 Cp3 7 p8 0 Cp8 7 , p5 0 h total average output current (note 1) p4 0 Cp4 7 , p5 2 Cp5 7 , p6 0 Cp6 7 , p7 0 , p7 1 l total average output current (note 1) p0 0 Cp0 7 , p1 0 Cp1 7 , p2 0 Cp2 7 , p3 0 Cp3 7 l total average output current (note 1) p8 0 Cp8 7 , p5 0 l total average output current (note 1) p4 0 Cp4 7 , p5 2 Cp5 7 , p6 0 Cp6 7 , p7 0 , p7 1 h peak output current (note 2) p0 0 Cp0 7 , p1 0 Cp1 7 , p2 0 Cp2 7 , p3 0 Cp3 7 h peak output current (note 2) p4 0 Cp4 7 , p5 0 , p5 2 Cp5 7 , p6 0 Cp6 7 , p7 0 , p7 1 p8 0 Cp8 7 l peak output current (note 2) p0 0 Cp0 7 , p1 0 Cp1 7 , p2 0 Cp2 7 , p3 0 Cp3 7 l peak output current (note 2) p4 0 Cp4 7 , p5 2 Cp5 7 , p6 0 Cp6 7 , p7 0 , p7 1 l peak output current (note 2) p8 0 Cp8 7 , p5 0 h average output current (note 3) p0 0 Cp0 7 , p1 0 Cp1 7 , p2 0 Cp2 7 , p3 0 Cp3 7 h average output current (note 3) p4 0 Cp4 7 , p5 0 , p5 2 Cp5 7 , p6 0 Cp6 7 , p7 0 , p7 1 p8 0 Cp8 7 l average output current (note 3) p0 0 Cp0 7 , p1 0 Cp1 7 , p2 0 Cp2 7 , p3 0 Cp3 7 l average output current (note 3) p4 0 Cp4 7 , p5 2 Cp5 7 , p6 0 Cp6 7 , p7 0 , p7 1 l average output current (note 3) p8 0 Cp8 7 , p5 0 s i oh(peak) s i oh(peak) s i ol(peak) s i ol(peak) s i ol(peak) s i oh(avg) s i oh(avg) s i ol(avg) s i ol(avg) s i ol(avg) i oh(peak) i oh(peak) i ol(peak) i ol(peak) i ol(peak) i oh(avg) i oh(avg) i ol(avg) i ol(avg) i ol(avg) limits ma ma ma ma ma ma ma ma ma ma ma ma ma ma ma ma ma ma ma ma parameter min. typ. max. symbol unit C60 C30 40 80 40 C30 C15 20 40 20 C2.0 C10 5.0 10 30 C2.0 C5.0 2.5 5.0 15 table 13 recommended operating conditions (vcc = 2.5 to 5.5 v, ta = C20 to 85c, unless otherwise noted) notes 1: the total output current is the sum of all the currents flowing through all the applicable ports. the total average current is an average value measured over 100 ms. the total peak current is the peak value of all the currents. 2: the peak output current is the peak current flowing in each port. 3: the average output current is average value measured over 100 ms.
44 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 38c3 group table 14 recommended operating conditions (vcc = 2.5 to 5.5 v, ta = C20 to 85c, unless otherwise noted) input frequency (duty cycle 50%) main clock input oscillation frequency (note 4) sub-clock input oscillation frequency (notes 4, 5) f(cntr 0 ) f(cntr 1 ) f(x in ) f(x cin ) limits mhz mhz mhz mhz mhz khz parameter min. typ. 32.768 max. 4.0 (2 5 v cc )C4 8.0 (4 5 v cc )C8 8.0 50 symbol unit (4.0 v v cc 5.5 v) (v cc 4.0 v) high-speed mode (4.0 v v cc 5.5 v) high-speed mode (v cc 4.0 v) middle-speed mode notes 4: when the oscillation frequency has a duty cycle of 50%. 5: when using the microcomputer in low-speed mode, set the sub-clock input oscillation frequency on condition that f(x cin ) < f(x in )/3.
45 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 38c3 group i oh = C2.0 ma i oh = C0.6 ma v cc = 2.5 v i oh = C5 ma i oh = C1.25 ma i oh = C1.25 ma v cc = 2.5 v i ol = 2.5 ma i ol = 1.25 ma i ol = 1.25 ma v cc = 2.5 v i ol = 5.0 ma i ol = 2.5 ma i ol = 2.5 ma v cc = 2.5 v i ol = 15 ma reset: v cc = 2.5 v C 5.5 v v i = v cc pull-down off v cc = 5.0 v, v i = v cc pull-down on v cc = 3.0 v, v i = v cc pull-down on v i = v cc v i = v cc v i = v cc v i = v ss pull-up off v cc = 5.0 v, v i = v ss pull-up on v cc = 3.0 v, v i = v ss pull-up on v i = v ss v i = v ss h output voltage p0 0 Cp0 7 , p1 0 Cp1 7 , p2 0 Cp2 7 , p3 0 Cp3 7 h output voltage p4 0 Cp4 7 , p5 0 , p5 2 Cp5 7 , p6 0 Cp6 7 , p7 0 , p7 1, (note) p8 0 Cp8 7 l output voltage p0 0 Cp0 7 , p1 0 Cp1 7 , p2 0 Cp2 7, p3 0 Cp3 7 l output voltage p4 0 Cp4 7 , p5 2 Cp5 7, p6 0 Cp6 7 , p7 0 , p7 1 (note) l output voltage p8 0 Cp8 7 , p5 0 hysteresis int 0 Cint 2 , cntr 0 , cntr 1 , p8 0 Cp8 7 hysteresis s clk1 , s in hysteresis reset h input current p0 0 Cp0 7 , p1 0 Cp1 7 , p2 0 Cp2 7 h input current p4 0 Cp4 7 , p5 0 Cp5 7 , p6 0 Cp6 7 , p7 0 , p7 1 , p8 0 Cp8 7 h input current reset h input current x in l input current p0 0 Cp0 7 , p1 0 Cp1 7 , p2 0 Cp2 7 , p5 1 l input current p4 0 Cp4 7 , p5 0 , p5 2 Cp5 7 , p6 0 Cp6 7 , p7 0 , p7 1 , p8 0 Cp8 7 l input current reset l input current x in limits v v v v v v v v v v v v v v v m a m a m a m a m a m a m a m a m a m a m a m a parameter min. v cc C2.0 v cc C1.0 v cc C2.0 v cc C0.5 v cc C1.0 30 6.0 C30 C6 typ. 0.5 0.5 0.5 70 25 4.0 C70 C25 C4 max. 2.0 0.5 1.0 2.0 0.5 1.0 2.0 5.0 140 45 5.0 5.0 C5.0 C5.0 C140 C45 C5 symbol unit test conditions v oh v oh v ol v ol v ol v t+ Cv t- v t+ Cv t- v t+ Cv t- i ih i ih i ih i ih i il i il i il i il table 15 electrical characteristics (vcc = 4.0 to 5.5 v, ta = C20 to 85c, unless otherwise noted) note: when 1 is set to the port x c switch bit (bit 4 of address 003b 16 ) of the cpu mode register, the drive ability of port p7 0 is different from the value above mentioned.
46 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 38c3 group ram hold voltage power source current limits parameter min. 2.0 typ. 6.4 1.6 15 4.5 0.1 max. 5.5 13 3.2 22 9.0 1.0 10 symbol unit when clock is stopped high-speed mode, vcc = 5 v f(x in ) = 8 mhz f(x cin ) = 32.768 khz output transistors off, a-d converter in operating high-speed mode, vcc = 5 v f(x in ) = 8 mhz (in wit state) f(x cin ) = 32.768 khz output transistors off, a-d converter stopped low-speed mode, v cc = 3 v, ta 55 c f(x in ) = stopped f(x cin ) = 32.768 khz output transistors off low-speed mode, v cc = 3 v, ta = 25 c f(x in ) = stopped f(x cin ) = 32.768 khz (in wit state) output transistors off all oscillation stopped (in stp state) output transistors off test conditions v ram i cc v ma ma m a m a m a m a ta = 25 c ta = 85 c table 16 electrical characteristics (vcc = 2.5 to 5.5 v, ta = C20 to 85c, unless otherwise noted)
47 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 38c3 group resolution absolute accuracy (excluding quantization error) conversion time reference input current analog port input current ladder resistor unit bits lsb tc( f ) m a m a k w limits parameter min. 61 50 typ. 1 150 0.5 35 max. 10 2.5 62 200 5.0 symbol v cc = v ref = 5.12 v v ref = 5 v test conditions t conv iv ref i ia r ladder table 17 a-d converter characteristics (vcc = 4.0 to 5.5 v, vss = 0 v, ta = C20 to 85c, 4 mhz f(x in ) 8 mhz, in middle-speed/high-speed mode)
48 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 38c3 group t w (reset) t c (x in ) t wh (x in ) t wl (x in ) t c (cntr) t wh (cntr) t wl (cntr) t wh (int) t wl (int) t c (s clk ) t wh (s clk ) t wl (s clk ) t su (s in -s clk ) t h (s clk -s in ) reset input l pulse width main clock input cycle time (x in input) main clock input h pulse width main clock input l pulse width cntr 0 , cntr 1 input cycle time cntr 0 , cntr 1 input h pulse width cntr 0 , cntr 1 input l pulse width int 0 Cint 2 input h pulse width int 0 Cint 2 input l pulse width serial i/o clock input cycle time serial i/o clock input h pulse width serial i/o clock input l pulse width serial i/o input setup time serial i/o input hold time t w (reset) t c (x in ) t wh (x in ) t wl (x in ) t c (cntr) t wh (cntr) t wl (cntr) t wh (int) t wl (int) t c (s clk ) t wh (s clk ) t wl (s clk ) t su (s in -s clk ) t h (s clk -s in ) limits m s ns ns ns ns ns ns ns ns ns ns ns ns ns parameter min. 2 125 45 40 250 105 105 80 80 800 370 370 220 100 typ. max. symbol unit limits m s ns ns ns ns ns ns ns ns ns ns ns ns ns parameter min. 2 125 45 40 500/(v cc C2) 250/(v cc C2)C20 250/(v cc C2)C20 230 230 2000 950 950 400 200 typ. max. symbol unit table 18 timing requirements 1 (vcc = 4.0 to 5.5 v, vss = 0 v, ta = C20 to 85c, unless otherwise noted) reset input l pulse width main clock input cycle time (x in input) main clock input h pulse width main clock input l pulse width cntr 0 , cntr 1 input cycle time cntr 0 , cntr 1 input h pulse width cntr 0 , cntr 1 input l pulse width int 0 Cint 2 input h pulse width int 0 Cint 2 input l pulse width serial i/o clock input cycle time serial i/o clock input h pulse width serial i/o clock input l pulse width serial i/o input setup time serial i/o input hold time table 19 timing requirements 2 (vcc = 2.5 to 4.0 v, vss = 0 v, ta = C20 to 85c, unless otherwise noted)
49 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 38c3 group measurement output pin 100 pf cmos output measurement output pin 100 pf n-channel open-drain output 1 k w note: when bit 7 of the serial i/o control register 1 (address 0019 16 ) is ?1.? (n-channel open-drain output mode) t wh (s clk ) t wl (s clk ) t d (s clk -s out ) t v (s clk -s out ) t r (s clk ) t f (s clk ) t r (cmos) t f (cmos) t wh (s clk ) t wl (s clk ) t d (s clk -s out ) t v (s clk -s out ) t r (s clk ) t f (s clk ) t r (cmos) t f (cmos) limits parameter min. t c (s clk )/2C30 t c (s clk )/2C30 C30 typ. 10 10 max. 140 30 30 30 30 symbol unit ns ns ns ns ns ns ns ns notes 1: when the p-channel output disable bit (bit 7 of address 0019 16 ) is 0. 2: the x out , x cout pins are excluded. serial i/o clock output h pulse width serial i/o clock output l pulse width serial i/o output delay time (note 1) serial i/o output valid time (note 1) serial i/o clock output rising time serial i/o clock output falling time cmos output rising time (note 2) cmos output falling time (note 2) table 20 switching characteristics 1 (vcc = 4.0 to 5.5 v, vss = 0 v, ta = C20 to 85c, unless otherwise noted) limits ns ns ns ns ns ns ns ns parameter min. t c (s clk )/2C50 t c (s clk )/2C50 C30 typ. 20 20 max. 350 50 50 50 50 symbol unit serial i/o clock output h pulse width serial i/o clock output l pulse width serial i/o output delay time (note 1) serial i/o output valid time (note 1) serial i/o clock output rising time serial i/o clock output falling time cmos output rising time (note 2) cmos output falling time (note 2) table 21 switching characteristics 2 (vcc = 2.5 to 4.0 v, vss = 0 v, ta = C20 to 85c, unless otherwise noted) notes 1: when the p-channel output disable bit (bit 7 of address 0019 16 ) is 0. 2: the x out , x cout pins are excluded. fig. 45 circuit for measuring output switching characteristics
50 single-chip 8-bit cmos microcomputer mitsubishi microcomputers 38c3 group 0.2v cc t d (s clk -s out ) t f 0.2v cc 0.8v cc 0.8v cc t r t su (s in -s clk )t h (s clk -s in ) t v (s clk -s out ) t c (s clk ) t wl (s clk ) t wh (s clk ) s out s in s clk 0.2v cc t wl (x in ) 0.8v cc t wh (x in ) t c (x in ) x in 0.2v cc 0.8v cc t w (reset) reset 0.2v cc t wl (cntr) 0.8v cc t wh (cntr) t c (cntr) 0.2v cc t wl (int) 0.8v cc t wh (int) cntr 0 ,cntr 1 int 0 ?int 3 fig. 46 timing diagram
51 38c3 group single-chip 8-bit cmos microcomputer mitsubishi microcomputers gzz-sh52-95b<85a0> receipt 740 family mask rom confirmation form single-chip microcomputer m38c34m6axxxfp mitsubishi electric mask rom number date: section head signature supervisor signature company name note : please fill in all items marked h . customer h issuance signature date issued submitted by tel () date: supervisor h 1. confirmation specify the name of the product being ordered and the type of eproms submitted. three eproms are required for each pattern. if at least two of the three sets of eproms submitted contain identical data, we will produce masks based on this data. we shall assume the responsibility for errors only if the mask rom data on the products we produce differs from this data. thus, extreme care must be taken to verify the data in the submitted eproms. checksum code for entire eprom (hexadecimal notation) in the address space of the microcomputer, the internal rom area is from address a080 16 to fffd 16 . the reset vector is stored in addresses fffc 16 and fffd 16 . (1) set the data in the unused area (the shaded area of the diagram) to ff 16 . (2) the ascii codes of the product name m38c34m6a must be entered in addresses 0000 16 to 0008 16 . and set data ff 16 in addresses 0009 16 to 000f 16 . the ascii codes and addresses are listed to the right in hesadecimal notation. eprom type (indicate the type used) 27256 27512 0000 16 000f 16 0010 16 207f 16 2080 16 7ffd 16 7ffe 16 7fff 16 eprom address eprom address product name ascii code : m38c34m6a data rom 24k-130 bytes 0000 16 000f 16 0010 16 a07f 16 a080 16 fffd 16 fffe 16 ffff 16 product name ascii code : m38c34m6a data rom 24k-130 bytes (1/2) address 0000 16 0001 16 0002 16 0003 16 0004 16 0005 16 0006 16 0007 16 m = 4d 16 3 = 33 16 8 = 38 16 c = 43 16 3 = 33 16 4 = 34 16 m = 4d 16 6 = 36 16 address 0008 16 0009 16 000a 16 000b 16 000c 16 000d 16 000e 16 000f 16 a =41 16 ff 16 ff 16 ff 16 ff 16 ff 16 ff 16 ff 16
52 38c3 group single-chip 8-bit cmos microcomputer mitsubishi microcomputers 740 family mask rom confirmation form single-chip microcomputer m38c34m6axxxfp mitsubishi electric gzz-sh52-95b<85a0> mask rom number we recommend the use of the following pseudo-command to set the start address of the assembier source program because ascii codes of the product name are written to addresses 0000 16 to 0008 16 of eprom. 27256 27512 eprom type the pseudo-command *= d $8000 .byte d m38c34m6a *= d $0000 .byte d m38c34m6a note : if the name of the product written to the eproms does not match the name of the mask rom confirmation form, the rom will not be processed. (2/2) h 2. mark specification mark specification must be submitted using the correct form for the package being ordered. fill out the appropriate mark specification form (80p6n) and attach it to the mask rom confirmation form. h 3. usage conditions please answer the following questions about usage for use in our product inspection : (1) how will you use the x in -x out oscillator? at what frequency? f(x in ) = ceramic resonator external clock input quartz crystal other ( ) mhz (2) which function will you use the p7 0 /x cin and p7 0 /x cout pins? port p7 0 and p7 1 function x cin -x cout function (external resonator) h 4. comments
53 38c3 group single-chip 8-bit cmos microcomputer mitsubishi microcomputers gzz-sh52-96b<85a0> receipt 740 family mask rom confirmation form single-chip microcomputer m38c34m6mxxxfp mitsubishi electric mask rom number date: section head signature supervisor signature company name note : please fill in all items marked h . customer h issuance signature date issued submitted by tel () date: supervisor h 1. confirmation specify the name of the product being ordered and the type of eproms submitted. three eproms are required for each pattern. if at least two of the three sets of eproms submitted contain identical data, we will produce masks based on this data. we shall assume the responsibility for errors only if the mask rom data on the products we produce differs from this data. thus, extreme care must be taken to verify the data in the submitted eproms. checksum code for entire eprom (hexadecimal notation) in the address space of the microcomputer, the internal rom area is from address a080 16 to fffd 16 . the reset vector is stored in addresses fffc 16 and fffd 16 . (1) set the data in the unused area (the shaded area of the diagram) to ff 16 . (2) the ascii codes of the product name m38c34m6m must be entered in addresses 0000 16 to 0008 16 . and set data ff 16 in addresses 0009 16 to 000f 16 . the ascii codes and addresses are listed to the right in hesadecimal notation. eprom type (indicate the type used) 27256 27512 0000 16 000f 16 0010 16 207f 16 2080 16 7ffd 16 7ffe 16 7fff 16 eprom address eprom address product name ascii code : m38c34m6m data rom 24k-130 bytes 0000 16 000f 16 0010 16 a07f 16 a080 16 fffd 16 fffe 16 ffff 16 product name ascii code : m38c34m6m data rom 24k-130 bytes (1/2) address 0000 16 0001 16 0002 16 0003 16 0004 16 0005 16 0006 16 0007 16 m = 4d 16 3 = 33 16 8 = 38 16 c = 43 16 3 = 33 16 4 = 34 16 m = 4d 16 6 = 36 16 address 0008 16 0009 16 000a 16 000b 16 000c 16 000d 16 000e 16 000f 16 m =4d 16 ff 16 ff 16 ff 16 ff 16 ff 16 ff 16 ff 16
54 38c3 group single-chip 8-bit cmos microcomputer mitsubishi microcomputers 740 family mask rom confirmation form single-chip microcomputer m38c34m6mxxxfp mitsubishi electric gzz-sh52-96b<85a0> mask rom number we recommend the use of the following pseudo-command to set the start address of the assembier source program because ascii codes of the product name are written to addresses 0000 16 to 0008 16 of eprom. 27256 27512 eprom type the pseudo-command *= d $8000 .byte d m38c34m6m *= d $0000 .byte d m38c34m6m note : if the name of the product written to the eproms does not match the name of the mask rom confirmation form, the rom will not be processed. (2/2) h 2. mark specification mark specification must be submitted using the correct form for the package being ordered. fill out the appropriate mark specification form (80p6n) and attach it to the mask rom confirmation form. h 3. usage conditions please answer the following questions about usage for use in our product inspection : (1) how will you use the x in -x out oscillator? at what frequency? f(x in ) = ceramic resonator external clock input quartz crystal other ( ) mhz (2) which function will you use the p7 0 /x cin and p7 0 /x cout pins? port p7 0 and p7 1 function x cin -x cout function (external resonator) h 4. comments
55 38c3 group single-chip 8-bit cmos microcomputer mitsubishi microcomputers gzz-sh52-97b<85a0> receipt 740 family rom programming confirmation form single-chip microcomputer m38c37ecaxxxfp mitsubishi electric rom number date: section head signature supervisor signature company name note : please fill in all items marked h . customer h issuance signature date issued submitted by tel () date: supervisor h 1. confirmation specify the name of the product being ordered and the type of eproms submitted. three eproms are required for each pattern. if at least two of the three sets of eproms submitted contain identical data, we will produce rom programming based on this data. we shall assume the responsibility for errors only if the rom programming data on the products we produce differs from this data. thus, extreme care must be taken to verify the data in the submitted eproms. checksum code for entire eprom (hexadecimal notation) in the address space of the microcomputer, the internal rom area is from address 4080 16 to fffd 16 . the reset vector is stored in addresses fffc 16 and fffd 16 . (1) set the data in the unused area (the shaded area of the diagram) to ff 16 . (2) the ascii codes of the product name m38c37eca must be entered in addresses 0000 16 to 0008 16 . and set data ff 16 in addresses 0009 16 to 000f 16 . the ascii codes and addresses are listed to the right in hesadecimal notation. eprom type (indicate the type used) 27512 0000 16 000f 16 0010 16 407f 16 4080 16 fffd 16 fffe 16 ffff 16 eprom address product name ascii code : m38c37eca data rom 48k-132 bytes (1/2) address 0000 16 0001 16 0002 16 0003 16 0004 16 0005 16 0006 16 0007 16 m = 4d 16 3 = 33 16 8 = 38 16 c = 43 16 3 = 33 16 7 = 37 16 e = 45 16 c = 43 16 address 0008 16 0009 16 000a 16 000b 16 000c 16 000d 16 000e 16 000f 16 a =41 16 ff 16 ff 16 ff 16 ff 16 ff 16 ff 16 ff 16
56 38c3 group single-chip 8-bit cmos microcomputer mitsubishi microcomputers 740 family rom programming confirmation form single-chip microcomputer m38c37ecaxxxfp mitsubishi electric gzz-sh52-97b<85a0> rom number we recommend the use of the following pseudo-command to set the start address of the assembier source program because ascii codes of the product name are written to addresses 0000 16 to 0008 16 of eprom. 27512 eprom type the pseudo-command *= d $0000 .byte d m38c37eca note : if the name of the product written to the eproms does not match the name of the rom programming confirmation form, the rom will not be processed. (2/2) h 2. mark specification mark specification must be submitted using the correct form for the package being ordered. fill out the appropriate mark specification form (80p6n) and attach it to the rom programming confirmation form. h 3. usage conditions please answer the following questions about usage for use in our product inspection : (1) how will you use the x in -x out oscillator? at what frequency? f(x in ) = ceramic resonator external clock input quartz crystal other ( ) mhz (2) which function will you use the p7 0 /x cin and p7 0 /x cout pins? port p7 0 and p7 1 function x cin -x cout function (external resonator) h 4. comments
57 38c3 group single-chip 8-bit cmos microcomputer mitsubishi microcomputers gzz-sh52-98b<85a0> receipt 740 family rom programming confirmation form single-chip microcomputer m38c37ecmxxxfp mitsubishi electric rom number date: section head signature supervisor signature company name note : please fill in all items marked h . customer h issuance signature date issued submitted by tel () date: supervisor h 1. confirmation specify the name of the product being ordered and the type of eproms submitted. three eproms are required for each pattern. if at least two of the three sets of eproms submitted contain identical data, we will produce rom programming based on this data. we shall assume the responsibility for errors only if the rom programming data on the products we produce differs from this data. thus, extreme care must be taken to verify the data in the submitted eproms. checksum code for entire eprom (hexadecimal notation) in the address space of the microcomputer, the internal rom area is from address 4080 16 to fffd 16 . the reset vector is stored in addresses fffc 16 and fffd 16 . (1) set the data in the unused area (the shaded area of the diagram) to ff 16 . (2) the ascii codes of the product name m38c37ecm must be entered in addresses 0000 16 to 0008 16 . and set data ff 16 in addresses 0009 16 to 000f 16 . the ascii codes and addresses are listed to the right in hesadecimal notation. eprom type (indicate the type used) 27512 0000 16 000f 16 0010 16 407f 16 4080 16 fffd 16 fffe 16 ffff 16 eprom address product name ascii code : m38c37ecm data rom 48k-132 bytes (1/2) address 0000 16 0001 16 0002 16 0003 16 0004 16 0005 16 0006 16 0007 16 m = 4d 16 3 = 33 16 8 = 38 16 c = 43 16 3 = 33 16 7 = 37 16 e = 45 16 c = 43 16 address 0008 16 0009 16 000a 16 000b 16 000c 16 000d 16 000e 16 000f 16 m =4d 16 ff 16 ff 16 ff 16 ff 16 ff 16 ff 16 ff 16
58 38c3 group single-chip 8-bit cmos microcomputer mitsubishi microcomputers 740 family rom programming confirmation form single-chip microcomputer m38c37ecmxxxfp mitsubishi electric gzz-sh52-98b<85a0> rom number we recommend the use of the following pseudo-command to set the start address of the assembier source program because ascii codes of the product name are written to addresses 0000 16 to 0008 16 of eprom. 27512 eprom type the pseudo-command *= d $0000 .byte d m38c37ecm note : if the name of the product written to the eproms does not match the name of the rom programming confirmation form, the rom will not be processed. (2/2) h 2. mark specification mark specification must be submitted using the correct form for the package being ordered. fill out the appropriate mark specification form (80p6n) and attach it to the rom programming confirmation form. h 3. usage conditions please answer the following questions about usage for use in our product inspection : (1) how will you use the x in -x out oscillator? at what frequency? f(x in ) = ceramic resonator external clock input quartz crystal other ( ) mhz (2) which function will you use the p7 0 /x cin and p7 0 /x cout pins? port p7 0 and p7 1 function x cin -x cout function (external resonator) h 4. comments
59 38c3 group single-chip 8-bit cmos microcomputer mitsubishi microcomputers 1 80 65 40 64 41 25 24 mitsubishi product number (6-digit, or 7-digit) 1 80 65 40 64 41 25 24 customers parts number note : the fonts and size of characters are standard mitsubishi type. mitsubishi ic catalog name notes 1 : the mark field should be written right aligned. 2 : the fonts and size of characters are standard mitsubishi type. 3 : customers parts number can be up to 14 alphanumeric char- acters for capital letters, hyphens, commas, periods and so on. 4 : if the mitsubishi logo is not required, check the box below. mitsubishi logo is not required 80p6n (80-pin qfp) mark specification form mitsubishi ic catalog name please choose one of the marking types below (a, b, c), and enter the mitsubishi ic catalog name and the special mark (if neede d). a. standard mitsubishi mark c. special mark required b. customers parts number + mitsubishi ic catalog name mitsubishi ic catalog name notes1 : if special mark is to be printed, indicate the desired lay- out of the mark in the left figure. the layout will be duplicated technically as close as possible. mitsubishi product number (6-digit, or 7-digit) and mask rom number (3-digit) are always marked for sorting the products. 2 : if special character fonts (e,g., customers trade mark logo) must be used in special mark, check the box be- low. for the new special character fonts, a clean font original (ideally logo drawing) must be submitted. special character fonts required 1 80 65 40 64 41 25 24
60 38c3 group single-chip 8-bit cmos microcomputer mitsubishi microcomputers weight(g) jedec code eiaj package code 80d0 glass seal 80pin qfn 25 40 80 65 41 64 24 1 1.2typ 0.6typ 0.8typ index 1.78typ 3.32max 0.8typ 1.2typ 0.8typ 0.5typ 12.0 0.15 15.6 0.2 21.0 0.2 18.4 0.15 qfp80-p-1420-0.80 1.58 weight(g) jedec code eiaj package code lead material alloy 42 80p6n-a plastic 80pin 14 5 20mm body qfp 0.1 0.2 symbol min nom max a a 2 b c d e h e l l 1 y b 2 dimension in millimeters h d a 1 0.5 i 2 1.3 m d 14.6 m e 20.6 10 0 0.1 1.4 0.8 0.6 0.4 23.1 22.8 22.5 17.1 16.8 16.5 0.8 20.2 20.0 19.8 14.2 14.0 13.8 0.2 0.15 0.13 0.45 0.35 0.3 2.8 0 3.05 e e e e c h e 1 80 65 40 64 41 25 24 h d d m d m e a f b a 1 a 2 l 1 l y b 2 i 2 recommended mount pad detail f
? 1998 mitsubishi electric corp. new publication, effective jun. 1998. specifications subject to change without notice. notes regarding these materials ? these materials are intended as a reference to assist our customers in the selection of the mitsubishi semiconductor product b est suited to the customers application; they do not convey any license under any intellectual property rights, or any other rights, belonging to mitsubishi electric corporation or a third party. ? mitsubishi electric corporation assumes no responsibility for any damage, or infringement of any third-partys rights, origina ting in the use of any product data, diagrams, charts or circuit application examples contained in these materials. ? all information contained in these materials, including product data, diagrams and charts, represent information on products a t the time of publication of these materials, and are subject to change by mitsubishi electric corporation without notice due to product improvements or other reasons. it is therefore recommended that customers co ntact mitsubishi electric corporation or an authorized mitsubishi semiconductor product distributor for the latest product information before purchasing a product listed herein. ? mitsubishi electric corporation semiconductors are not designed or manufactured for use in a device or system that is used und er circumstances in which human life is potentially at stake. please contact mitsubishi electric corporation or an authorized mitsubishi semiconductor product distributor when considering the use of a pro duct contained herein for any specific purposes, such as apparatus or systems for transportation, vehicular, medical, aerospace, nuclear, or undersea repeater use. ? the prior written approval of mitsubishi electric corporation is necessary to reprint or reproduce in whole or in part these m aterials. ? if these products or technologies are subject to the japanese export control restrictions, they must be exported under a licen se from the japanese government and cannot be imported into a country other than the approved destination. any diversion or reexport contrary to the export control laws and regulations of japan and/or the country of destination is pro hibited. ? please contact mitsubishi electric corporation or an authorized mitsubishi semiconductor product distributor for further detai ls on these materials or the products contained therein. keep safety first in your circuit designs! ? mitsubishi electric corporation puts the maximum effort into making semiconductor products better and more reliable, but there is always the possibility that trouble may occur with them. trouble with semiconductors may lead to personal injury, fire or property damage. remember to give due consideration to safety when making y our circuit designs, with appropriate measures such as (i) placement of substitutive, auxiliary circuits, (ii) use of non-flammable material or (iii) prevention against any malfunction or mishap.
rev. rev. no. date 1.0 first edition 980602 revision description list 38c3 group data sheet (1/1) revision description


▲Up To Search▲   

 
Price & Availability of M38C35E6AXXXFP

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X